Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to use tracker data on a 3D layer?

  • How to use tracker data on a 3D layer?

    Posted by Olipool on June 7, 2007 at 2:00 pm

    Hi folks,

    I was just tracking some video with me sitting in a chair and waving around with my finger. The tracking went well and now I got a handsome null-object following my fingertip.

    I then tried to apply the tracker data to another layer on which a nice butterfly resides. My goal: let the butterfly sit on my fingertip while I’m waving around. The problem now is, the butterfly layer is a 3D layer and its z-position in by 8000. Because of that the x and y movement doesn’t follow my fingertip anymore because its scaled down according to the perspective.

    I figured out, there is an expression to project a 3D movement to composition coordinates: toComp(). But I need it some kind of the other way. Is there any possibility to match my 2D tracking data to a 3D layer deep down in 3D space so that it will still follow the tracked object? Like it would as it had a z-position of 0? The position of 8000 ist nesscesary because of the proportions of the butterfly.

    Thank you very much in advance, I’ve been working on this the whole day long now!

    Olipool replied 18 years, 11 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    June 7, 2007 at 3:59 pm

    This is a tricky one. Try this:

    L = thisComp.layer(“Null 1”);
    fromCompToSurface(L.toComp(L.anchorPoint)) + value – anchorPoint;

    Dan

  • Dan Ebberts

    June 7, 2007 at 4:12 pm

    This is better:

    L = thisComp.layer(“Null 1”);
    toWorld(fromCompToSurface(L.toComp(L.anchorPoint)))

    Dan

  • Olipool

    June 8, 2007 at 6:36 am

    WOW! This is incredible! This is awesome! It works just like I wanted it to! Thank you so much.

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