FORUMS: list search recent posts

Getting world space X position from parented XYZ

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Navarro Parker
Getting world space X position from parented XYZ
on Aug 12, 2016 at 7:57:36 pm

I have a 3D null with separated dimensions. I need the X position to always be the same as another 3D layer (which unfortunately is a child of another layer and does not have separated dimensions).

Simple pickwhipping to the X coordinate would work if it wasn't parented. Any suggestions?


Return to posts index

Dan Ebberts
Re: Getting world space X position from parented XYZ
on Aug 12, 2016 at 8:28:27 pm

This should work:

L = thisComp.layer("Other 3D Layer");
L.toWorld(L.anchorPoint)[0]


Dan



Return to posts index

Navarro Parker
Re: Getting world space X position from parented XYZ
on Aug 12, 2016 at 9:07:56 pm

Good ol' to.World?? With a matrix definer?? Man, I feel dumb.

But thank you for your quick reply! :)


Return to posts index

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