-
Script apply variable value to expression
I have a script that applies an expression to a selected property. When I apply the expression, I would like the layer name to reference a variable. In my example, I would like the value of var myCustom to be used for thisComp.layer in the expression. Is it possible?
var myCustom = "Drive" + " " + "//" + " " + myControl;// Custom Layer Name
var myExpr = 'temp = thisComp.layer(myCustom).effect("Drive")("Output 01"); dim = value instanceof Array ? value.length : 1; dim > 1 ? [temp,temp] : temp';
Sorry, there were no replies found.