Reputation: 101
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
Reputation: 4121
To add an expression to a layers attribute you do something like this:
layer.transform.position.expression = 'loopOut("Cycle")';
Upvotes: 4