Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Null position data from a 2d comp onto a NULL in a 3d Comp

  • Null position data from a 2d comp onto a NULL in a 3d Comp

    Posted by Matt Stevens on June 17, 2014 at 3:08 pm

    Hello,

    I’m scratching my head here. I’ve had a trawl through the forum and possibly found the reverse of what I’m trying to do…. I don’t even know if it’s possible…. it must be.

    I have been supplied a 2d project animation of a girl. This comp is then dropped into a comp with some shot footage. The footage has been camera tracked and the girl placed on a chair in the scene. A 3D mic is going to be put in the girls hand. I’ve been trying to get the position of her hand from her comp onto a null in the footage comp so I can give this to a CG guy (using Maya) so he doesn’t have to eye match the animation.

    The Setup:

    Comp LittleGirl-02-A, the 2D girl animation comp which is 1750×3000 pixels. This comp contains a Null (“Hand_NULL”) with 2d position key frames on it (also rotation and scale).

    LittleGirl-02-A is then dropped into Interview_Comp which is 1920×1080. In this comp the girl is scaled up and parented to a NULL created from a camera track.

    What I want to try and do is get the position data of the girls hand from LitleGirl-02-A onto a NULL in the Interview_Comp taking into account that the comps are different sizes.

    Is this even possible?

    Thanks in advance

    Matt

    Matt Stevens replied 12 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 17, 2014 at 5:02 pm

    Try this:

    L1 = comp(“LittleGirl-02-A”).layer(“Hand_NULL”);
    p = L1.toWorld([0,0,0]);
    L2 = thisComp.layer(“LittleGirl-02-A”);
    L2.toWorld(p)

    Dan

  • Matt Stevens

    June 17, 2014 at 5:12 pm

    As always Dan to the rescue!!! My brain was starting to ache, Thankyou

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