Activity › Forums › Adobe After Effects › puppet pin initial position
-
puppet pin initial position
Posted by Bartek Skorupa on December 8, 2009 at 11:58 amDoes anyone know the way to set the puppet tool’s pin’s initial position?
I would like to place the pin exactly at for example [200, 200] and tell the puppet tool, that this is the initial position of the pin without any distortion.
I am looking for a kind of “anchor point” of the pin.Bartek Skorupa
Warszawa, PolandChris Wright replied 16 years, 4 months ago 2 Members · 6 Replies -
6 Replies
-
Bartek Skorupa
December 8, 2009 at 7:12 pmThat’s exactly what happens when I place a new pin. The initial position is set.
How about I’d like to correct this initial position?
I would like to be really precise. I would like to be able to set this position exactly at let’s say [200, 200].
Not at [200.012, 200.033]I can of-course remove a pin, and add another one, but after 123,342,344,211,352 trials I am a bit tired.
Bartek Skorupa
Warszawa, Poland -
Bartek Skorupa
December 8, 2009 at 7:31 pmWell, I was afraid you’d say so…
Thanks anyway.Bartek Skorupa
Warszawa, Poland -
Chris Wright
December 8, 2009 at 11:17 pmwouldn’t it be easier to just attach a null to the pin, then the null will always give you a whole number. paste in pin and drag the null around. you could also add a math round so that even at 3200%, it’s whole numbers.
N = thisComp.layer(“Null 1”);
fromWorld(N.toWorld(N.position));https://technicolorsoftware.hostzi.com/
-
Chris Wright
December 9, 2009 at 1:15 amok 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]
-
Bartek Skorupa
December 9, 2009 at 8:58 amThank you for that, but this is not the case I try to solve.
I know how to control the position of the pin via nulls, via expressions etc after the pin is created.
The point is that once the pin is created by placing it with the mouse click – its initial position is set. If I change its position – the mesh is being deformed.
What I am trying to achieve is creating the new pin at the exact position without trying to aim with the mouse cursor.
Or when I place the new pin – I’d like to change its position WITHOUT distorting the mesh. Kind of “pen behind” stuff.
I’m afraid this is impossible without some script.
I’m not good at scripting, but if there is a possibility to add new pin via script – the problem would be solved I think.Bartek Skorupa
Warszawa, Poland -
Chris Wright
December 9, 2009 at 4:26 pmthere’s only addavlayer,null,solid,text,camera,light, shape, name, precompose for scripting.
You could always try animating the starch high before you move the pin.
https://technicolorsoftware.hostzi.com/
Reply to this Discussion! Login or Sign Up