ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

3D Null .toComp - Y axis only?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Navarro Parker
3D Null .toComp - Y axis only?
on Feb 3, 2017 at 7:54:59 pm

Using the usual expression to get 2D position from a 3D layer:
L = thisComp.layer('3DNull');
L.toComp([0,0,0]);

What if I only wanted the Y position of the 2D layer to track the 3D layer?


Return to posts index

Dan Ebberts
Re: 3D Null .toComp - Y axis only?
on Feb 3, 2017 at 8:18:47 pm

I haven't tested this but give it a try:

L = thisComp.layer('3DNull');
p = L.toComp([0,0,0]);
[value[0],p[1]]


Dan



Return to posts index

Navarro Parker
Re: 3D Null .toComp - Y axis only?
on Feb 8, 2017 at 11:49:51 pm

Yup! That did the trick! Thank you, Dan!


Return to posts index

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