-
Null Object’s position
Hi and thank you in advance. I trying to build a script, I have a button, when clicked, it will create a null object on top of selected layer. But, I want to null not to be linked. I want the null’s position be placed on the left boundary of selected layer but with the code I have , it always places the null’s position to the left of composition. Any help or ideas?
// set the null object's initial position to the left boundary of the selected layer nullLayer.transform.position.setValue([selectedLayer.sourceRectAtTime(0,false).left, nullLayer.transform.position.value[1], nullLayer.transform.position.value[2]]);