ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Benoit Kergosien
Lock 2D position of a 3D layer with a customizable Z
on Jun 14, 2017 at 7:56:17 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.


Return to posts index

Benoit Kergosien
Re: Lock 2D position of a 3D layer with a customizable Z
on Jun 15, 2017 at 11:02:13 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]