ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

puppet pin initial position

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bartek Skorupapuppet pin initial position
by on Dec 8, 2009 at 11:58:03 am

Does 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, Poland


Return to posts index

Dave LaRondeRe: puppet pin initial position
by on Dec 8, 2009 at 3:45:39 pm

[Bartek Skorupa] "Does anyone know the way to set the puppet tool's pin's initial position? "

Isn't that what happens when you set the initial keyframe before you begin animating, or do I misread your intention?

Dave LaRonde
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA


Return to posts index

Bartek SkorupaRe: puppet pin initial position
by on Dec 8, 2009 at 7:12:00 pm

That'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


Return to posts index


Dave LaRondeRe: puppet pin initial position
by on Dec 8, 2009 at 7:15:32 pm

What if go magnify the view in the comp window to something like 400%? Your aim gets four times more precise.

Dave LaRonde
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA


Return to posts index

Bartek SkorupaRe: puppet pin initial position
by on Dec 8, 2009 at 7:31:32 pm

Well, I was afraid you'd say so...
Thanks anyway.

Bartek Skorupa
Warszawa, Poland


Return to posts index

Chris WrightRe: puppet pin initial position
by on Dec 8, 2009 at 11:17:05 pm

wouldn'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));


http://technicolorsoftware.hostzi.com/


Return to posts index


Chris WrightRe: puppet pin initial position
by on Dec 9, 2009 at 1:15:19 am



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]


Return to posts index

Bartek SkorupaRe: puppet pin initial position
by on Dec 9, 2009 at 8:58:12 am

Thank 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


Return to posts index

Chris WrightRe: puppet pin initial position
by on Dec 9, 2009 at 4:26:25 pm

there'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.

http://technicolorsoftware.hostzi.com/


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]