-
relational movement without the initial jump
I’ve probably just been looking at this too long. I’m sure this is a simple fix.
Example: 2 nulls in a comp positioned anywhere. Null 1 and Null 2. I have this code applied to the position of Null 1. The code tells Null 1 to move in X as Null 2 moves in Y.
However, when applying this script, Null 1 jumps its initial position X to match Null 2’s Y. I want Null 1 to keep its initial position and not jump, regardless of where Null 2 started.xPos=transform.position[0]+(thisComp.layer("Null 2").transform.position[1] - transform.position[0]);
yPos=transform.position[1];
[xPos, yPos]