Copy link to clipboard
Copied
I have a null that has a bunch of position values in x and y space and an anchor point that moves it through z space (with some x and y to help with that). I'm trying to get the absolute position of this so that I can add this position to a Light (that doesn't have an anchor point). Is there a way to use an expression to get the absolute position of this null?
I tried to do this expression in the Light: thisComp.layer("Motion Path 1 Null").transform.position + thisComp.layer("Motion Path 1 Null").transform.anchorPoint
However this flips and flops the motion path. It seems just adding the anchor point to the position doesn't work. What is the correct way to do this math? Or is there just some sort of way to combine the anchor point into the position so I can have the position itself moving through z space?
How about this expression on the position property of your light:
N = thisComp.layer("Motion Path 1 Null");
N.toWorld([0,0,0])
Copy link to clipboard
Copied
How about this expression on the position property of your light:
N = thisComp.layer("Motion Path 1 Null");
N.toWorld([0,0,0])