Forum: Poser Python Scripting


Subject: rotating object

pauldol opened this issue on Jun 08, 2011 · 9 posts


pauldol posted Sat, 11 June 2011 at 10:03 AM

Quote - Some actors may be locked, or have limits set in such a way that effectively prevent rotation.

This is normal for rotation axes that are unnatural for human joints.

 

Thanks for the reply.

The problem is that if I manually try to "Twist" through tha palette then it works!

If I try to twist it using python then it has the problem.

But I found a way to make it work.

Here is the code:

rightHandActor = scene.Actor("Right Hand");
parmTwist = rightHandActor.ParameterByCode(poser.kParmCodeXROT);
parmTwist.SetValue(-22.5);