I tried your code on my null but the puppet pin still had Y and X movement. My source (which also has the pins and motion data) has
this:l = thisComp.layer(“Null_1”); fromWorld(l.toWorld(l.anchorPoint));
My null has this:
L = thisComp.layer(“Tracker-and-Pins”);
M = L.motionTracker(“Tracker 1”)(“Track Point 1”);
P = fromWorld(L.toWorld(M.attachPoint*-1 ) + M.attachPointOffset)
L2 = thisComp.layer(“Null_1”);
x = (L2.position-L2.position.valueAtTime(L2.inPoint))[1];
P + [x,0]
Is there a way to do this?
Actual_X=[0] //X data variable
Actual_Y=[1] //Y data variable
Position=[Actual_Y, 0] //put the y data into the x dimension.