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
Post a Comment