Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Motion Track a Moving Puppet

  • Motion Track a Moving Puppet

    Posted by Seb Mackintosh on December 8, 2009 at 11:21 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

    Chris Wright replied 16 years, 7 months ago 3 Members · 6 Replies
  • 6 Replies
  • Bartek Skorupa

    December 8, 2009 at 12:22 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

  • Seb Mackintosh

    December 8, 2009 at 12:41 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!

  • Bartek Skorupa

    December 8, 2009 at 1:12 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

  • Seb Mackintosh

    December 8, 2009 at 1:23 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!!!

  • Chris Wright

    December 9, 2009 at 6:54 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…
    https://forums.creativecow.net/readpost/2/969088

    https://technicolorsoftware.hostzi.com/

  • Chris Wright

    December 9, 2009 at 6:03 pm

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

    https://technicolorsoftware.hostzi.com/

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy