ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Motion Track a Moving Puppet

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Seb MackintoshMotion Track a Moving Puppet
by on Dec 8, 2009 at 11:21:52 am

Hi,

I've got four different puppets in a composition. I've animated the first one (a person). He's pushing a cart and I want to sync the cart movements to his waist.

I think motion tracking only works with rendered video, not other effects/stills. Can anyone suggest how to do this?

Regs


Return to posts index

Bartek SkorupaRe: Motion Track a Moving Puppet
by on Dec 8, 2009 at 12:22:53 pm

Let's say your layer with puppet tool is called "Layer1"
Let's say that the absolute position of the other layer should be the same as the Puppet Pin 1 absolute position.

Place the following expression to the position of this other layer:

L=thisComp.layer("Layer1");
pin1=L.effect("Puppet").arap.mesh("Mesh 1").deform("Puppet Pin 1").position;
L.toComp(pin1)

voila


Bartek Skorupa
Warszawa, Poland


Return to posts index

Seb MackintoshRe: Motion Track a Moving Puppet
by on Dec 8, 2009 at 12:41:53 pm

That's great...

Do I need to change this for relative position?

Are there any good resources for me to read about expressions - and would using a pickwhip do anything like this?

Tks!



Return to posts index


Bartek SkorupaRe: Motion Track a Moving Puppet
by on Dec 8, 2009 at 1:12:53 pm

In fact I did't write much.

I did as follows:

1. Alt-click the position.
2. write down:
L=
3. pick whip to the "Layer1" name.
4. write down:
;
5. hit enter (return)
6. write down:
pin1=
7. pick whip to the position of the pin
8. write down:
;
9 hit enter
10. write down:
L.toComp(pin1)

I had no idea about what "blableeblablee" stuff will be written. I only new the principles of "toComp" thing.

Bartek Skorupa
Warszawa, Poland


Return to posts index

Seb MackintoshRe: Motion Track a Moving Puppet
by on Dec 8, 2009 at 1:23:09 pm

Working a treat. I've also tried just adding the difference in the X dimension at start point to .position and that works.

Now I see I've created a problem. My pusher man stretches back before then moving forward and the wheel is tied to him so also flies backwards. Not a good look!

I can't find any material on how to only introduce the linked expression after a point in time (or a keyframe)...I'm guessing unless there's a keyframe option, it's an if clause of some kind...aaarrgghh...the things you do to learn this stuff!

Tks!!!



Return to posts index

Chris WrightRe: Motion Track a Moving Puppet
by on Dec 9, 2009 at 6:54:50 am

to parent a layer object to a pin
and if the cart is a normal layer...

L = thisComp.layer("face");
L.toWorld(L.effect("Puppet").arap.mesh("Mesh 1").deform("Puppet Pin 1").position)
----
and to parent a pin to a Null...
http://forums.creativecow.net/readpost/2/969088

http://technicolorsoftware.hostzi.com/


Return to posts index


Chris WrightRe: Motion Track a Moving Puppet
by on Dec 9, 2009 at 6:03:19 pm

and btw, if you precompose your pins, the newcomp can be fully motion tracked and then parented in any way you want.

http://technicolorsoftware.hostzi.com/


Return to posts index

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