Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 2D Position Projected to 3D Layer

  • 2D Position Projected to 3D Layer

    Posted by Nils Hammers on November 29, 2024 at 2:24 pm

    There is a comp with Camera and animated 2Dnull, which position I want to project to the 3D layer 8000 pixels in Z from Cam. Unfortunately:

    var pp = thisComp.layer("2DNull") ; thisLayer.fromWorld(pp.toWorld(pp.anchorPoint)) ;

    applied to the effect “Point Control”, gives scaled down results, not following the 2D position.
    What am I missing?

    Brie Clayton
    replied 1 week, 3 days ago
    3 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    November 29, 2024 at 3:54 pm

    This might be what you’re looking for:

    L = thisComp.layer("2DNull");
    fromCompToSurface(L.position)
  • Nils Hammers

    November 29, 2024 at 6:59 pm

    Woah, apparently the answer was on the surface.. thank you for bringing it up, Dan!
    I remember reading about it in the manual, wondered the real application, seldom saw it mentioned in tutorials. Copilot was none the wiser.
    Thank you, thank you, thank you Master!

  • Dan Ebberts

    November 29, 2024 at 7:39 pm

    Happy to help. 🙂

  • Brie Clayton

    December 2, 2024 at 3:04 pm

    Thank you for solving this, Dan! And Nils’ image is gold!

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