Max_Pro
Max_Pro

Reputation: 101

How add expressions in after effects to layer or composition using Extendscript and javascript?

Can anybody help me? I am trying to write a script for after effects CC using Extendscript. I want add expression to layer in the javascript. I wrote this code here

var MyTime = app.project.item(1).layer(1); var Mytime2 = MyTime.timeRemapEnabled = true;

and i want add exspression to layer(1), loopOut('Cycle')

How can i do it? Is it possible? Thanks.

Upvotes: 0

Views: 1755

Answers (1)

fabianmoronzirfas
fabianmoronzirfas

Reputation: 4121

To add an expression to a layers attribute you do something like this:

layer.transform.position.expression = 'loopOut("Cycle")';

Upvotes: 4

Related Questions