ok to tidy up, use this instead, then no matter what the null size/movement or comp zoom, the pin will always be a whole number. Also, set null scale to 0.1 will make it a perfect dot. You now have perfect pin control, yay!
N = thisComp.layer(“Null 1”);
z=fromWorld(N.toWorld(N.position));
p=Math.round(z[0]);
t=Math.round(z[1]);
[p,t]
—
also, you could paste this into a text layer to monitor the pin-pixel positions.
thisComp.layer(“Null 1”).effect(“Puppet”).arap.mesh(“Mesh 1”).deform(“Puppet Pin 1”).position[0] + “, ” + thisComp.layer(“Null 1”).effect(“Puppet”).arap.mesh(“Mesh 1”).deform(“Puppet Pin 1”).position[1]