ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

get an property address dynamically

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
phil largilliere
get an property address dynamically
on Oct 18, 2017 at 2:44:37 pm

Hi everyone,

I wrote a script from a script by David Torno. It look like this :

myProp1 = app.project.item(6).layer("Dark Lime Green Solid 1").property("ADBE Transform Group").property("ADBE Position");
myProp2 = app.project.item(6).layer("Black Solid 1").property("Transform").property("Position");

var a = collectKeyFrames(myProp1);
var b = transferKeyframes(myProp2, a);

In this case, my 2 functions work perfectly well, BUT... How can I get property informations dynamically ?

I wrote them into a doc file, I can get the info, but my variables become texts, not objects, and the functions don't work anymore. How can I get that ?

Return to posts index

Xavier Gomez
Re: get an property address dynamically
on Oct 18, 2017 at 9:31:10 pm

You can use eval.
myPath being the string stored in the file:

var myProperty;
try{myProperty = eval(myPath);}


Return to posts index

phil largilliere
Re: get an property address dynamically
on Oct 19, 2017 at 8:42:14 am

Perfect !! Thank you so much

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved