Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects 2D Null tracked to 3D layer

  • 2D Null tracked to 3D layer

    Posted by Jeff Mcbride on August 13, 2007 at 2:02 pm

    I’m using greenscreen motion-tracked footage in AE. (The footage was tracked with Syntheyes) I’ve set up some layers in 3D space to build a scene around the character. I need some of those layers to interact with the 2D video footage. So I setup a tracker to follow a point on the character and set it to a 2D Null.

    The 3D layers are set at a different Rot, Pos, and Scale so I need to somehow translate the 2D position of the null on the fly to the 3D layer. Any idea how? Thanks!

    Enots1 replied 18 years, 9 months ago 4 Members · 3 Replies
  • 3 Replies
  • Roland R. kahlenberg

    August 13, 2007 at 4:28 pm

    Dude! You obviously have a complex issue to solve but your input here doesn’t provide much info. Perhaps an image link/post/embed here may help.

    FWIW, I know that Syntheyes allows for manual tracks to be added once your 3D auto track is done. Perhaps you can try that and see how it works.

    Cheers
    Roland Kahlenberg
    https://www.broadcastGEMs.com – Adobe After Effects project files
    https://www.myspace.com/rorkrgbspace

  • Darby Edelen

    August 13, 2007 at 8:56 pm

    I’m not sure if this applies to what you’re asking directly, but the way to translate a point on a 3D layer from the world coordinate system to the composition coordinate system is:

    l = thisComp.layer(“My 3D Layer”);

    l.toComp(l.anchorPoint);

    This would translate the anchor point of the 3D layer to 2D composition coordinates.

    Darby Edelen
    DVD Menu Artist
    Left Coast Digital
    Aptos, CA

  • Enots1

    August 16, 2007 at 6:13 am

    I tested it and my solution is…

    i) make both layer(tracked 2D Null, original shot) 3D layer.

    ii) parent the 2D Null to original Shot.

    iii) parent the original shot to the camera(I guess 3D tracked motion data is in this cam).

    iv) reset the original shot transform
    – anchor point (360, 243, -z) ; in NTSC D1, z is camera zoom factor
    – position (0, 0, 0)
    – all rotation to zero
    – scale (100,100,100)*distance ; distance is the distance factor, in my case just 1,
    you may need keyframes.

    if all process is correct till here, you may see fixed(nothing happens to your preview)
    shot and moving null, with your active camera view. But in other view you can see
    the Null and the original shot move along in space.

    v) if you want the absolute position data of the Null, make another 3D Null and make
    expression in position.

    L = thisComp.layer(“2D Null”);
    L.toWorld(L.anchorPoint,time)
    // this expression is in the tutorials of Dan Ebberts.

    vi) convert this expression to keyframes in keyframe assistant.

    that’s all, if I understand your situation right, it will work.

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