Copy link to clipboard
Copied
I'm trying to automate the creation of a bunch of rather involved expressions. Is it possible to write a script that creates an expression? For example, can I write a script which sets the position property of a layer to "wiggle(5,10)"?
And conversely, can a script access the source code of an existing expression? If I look at the value of a layer that has a wiggle function, I just get the wiggle value, not the actual code generating those random values.
To set an expression:
myLayer.property("Position").expression = "wiggle(5,10)";
To retrieve an expression
var myExpr = myLayer.property("Position").expression;
Dan
Copy link to clipboard
Copied
To set an expression:
myLayer.property("Position").expression = "wiggle(5,10)";
To retrieve an expression
var myExpr = myLayer.property("Position").expression;
Dan
Copy link to clipboard
Copied
Awesome! Thanks Dan. I love your site, by the way.