Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Lock 2D position of a 3D layer with a customizable Z

  • Lock 2D position of a 3D layer with a customizable Z

    Posted by Benoit Kergosien on June 14, 2017 at 7:56 pm

    Hi folks,

    I would like to have the possibility to customize the Z position of my layer with my X and Y constrained to their original values.

    In other terms when I modify my Z, the X and Y coordinates are recalculated to mimic their original positions.

    Sounds a job for an expression for layer space transforms but Im a bit stuck with toComp, fromComp…

    Hope someone could help!

    Thanks,

    Benoît.

    Benoit Kergosien replied 8 years, 11 months ago 1 Member · 1 Reply
  • 1 Reply
  • Benoit Kergosien

    June 15, 2017 at 11:02 am

    For now I can only achieve to parent my 3d layer to a 2D null with the expression:

    ref = thisComp.layer(“2D null”);
    newPosition=ref.toComp([0,0,0]);

    Unfortunately I don’t know what to do next, and if its a good first step btw.

    Benoît.

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