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

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?