I don't know if anybody here is using the Andrew Kramer SureTarget preset.

He doesn't work with parenting layer, i have modified the expression for work with parent. It works perfectly with the position and for each rotation axis, but it doesn't work for simultaneous rotation in two or three axis.

It strange and i need this feature for a project.

I don't know if anybody had search a solution for the same problem, or if there is a other solution.

I have adapted this code for xRotation and yRotation by changing the toWorldVec in (0,1,0) and atan2(u(2),u(1)) for xRot and (0,0,1) and atan2(u(0),u(2)) for yRot.

It works for each rotation, but not if you used more than one rotation expression, because the rotation value becomes weird.

IN this state, it's useful but in order to become the real 1.6 version, i have to find a solution and for the moment i have no idea. The math works so i can't figure out why the rotation can't interact.

A possibility is to find an other technic to get the rotation value, without the toWorldvec.

If anybody have a solution, it will be useful for one of my script project, with a lot of parented text layer.

Thanks!

P.S.: a possibility is to search a recursive method to add all the rotation of the parented layer, until the first parent value, to obtain the real rotation value, even if it could take a long time with a lot of layers.