Global Values on parented layer putting

Moderators: Disciple, zlovatt

Post Reply
bexier
Posts: 4
Joined: March 15th, 2007, 2:50 pm
Location: Los Angeles
Contact:

I posed this Question to Dan Ebberts.

due to the nature of my project It would really help if I could get a parented null to put out Global Values.

I am using an IK Setup that Brian Maffitt set up. His bones postion values depend on Rotation. and that rotation value depends on a target being moved. These targets are the only thing in the project that gets Global position values. every thing else relies on rotation to drive position (and the x and y never change.)

So since all position is local based on parenting and expression, is there away to get the global values? Or a way to get another layer to out put the global value of the something parented?

Dan had suggested the following, in my case it forced the object to return to its global position, but it was not longer where I needed it.

You need to use layer space transforms. There are a bunch of them, but you probably need toWorld(). They work like this:

L = thisComp.layer("your layer");
L.toWorld(L.anchorPoint)
----
Jason Hearne
Senior Designer/Animator - GSN
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

You probably need to convert the local rotations to world rotations using toWorldVec() or something, then derive the position from the normalized rotations.

Mylenium
[Pour Mylène, ange sur terre]
Post Reply