How to convert string to [AVLayer]


hi everyone.

i`ve got code:

 

 

var mycomp = "app.project.activeitem"; var text = '.layer("4").effect("unsharp mask")("amount")'; var mylayer = mycomp+text;  alert(mylayer.value)               // doesn`t work 

 

how can convert string (mylayer) [avlayer] object property?

this should closer:

 

var mycomp = "app.project.activeitem";

var mytext = '.layer("4").effect("unsharp mask")("amount").value';

var myval= eval(mycomp+mytext);

alert(myval);

 

 

dan



More discussions in After Effects Scripting


adobe

Comments

Popular posts from this blog

Object Fitting Keyboard Shortcuts Disfuntional

Markers not showing up after opening a saved project. Where did they go!?

After Effects error: (-1610153453)