-
Script-Pick Whip?
Hi! I’m trying to create a pick whip in AE Scripts but can’t make it to work.
I want to achieve this expression:
thisComp.layer('RealCameraMovement').transform.position+value
but the only way I have found working is by hardcoding the expression like this in the script:
selectedLayer.property("position").expression = "thisComp.layer('" + scriptName + "').transform.position+value";
But this way, if the user later change the Null-object(the nulls name-variable is scriptName) the expression doesn’t update like if I would have made this inside AE.
Are there any way to create a pick whip in AE scripts so if the Null is later renamed the expression still works?Thanks!