Hi!
Just wanted to quickly update this subject. I have a problem w Dan’s expression for getting the 3D orientation of a child null. At first it worked great. But now I try to execute the same thing with different layers in the same composition and the Y orientation behaves crazy.
Let’s say the child null I follow is called NULLCHILD, his parent is called NULLPARENT, and the layer that follows the child null is called FOLLOWER.
When I change the X or Z orientation of my NULLCHILD, the FOLLOWER follows the null’s orientation normally. But when I change the Y orientation value, it follows in a very strange way, also messing up the X and Z values. So I change the Y orientation in a NULLCHILD like this:
From 0 to 8.7 degrees, the FOLLOWER’s Y goes from 0 to 90. Then when I change further, from 8.7 to 171 – nothing changes, it stays on 90. After that, from 172 to 188, the Y changes to 270, and the X and Z changes to 180, and the Y goes from 77 to 306 and at the end changes to 270, and X and Z change to 0. Now, from 189 to 352, everything stays the same. And from 352 to 360, the Y also goes from 270 to 360. I have absolutely no idea where those values come from…
As I wrote, it is the same composition, the same camera, only in a different position. When investigating it looks like the script is working ok untill I parent the NULLCHILD to the NULLPARENT. After that it goes crazy. Any clues?