Bone pre_xform python

   1480   3   1
User Avatar
Member
14 posts
Joined: Oct. 2010
Offline
Hello everyone.

Someone Knows how I can acces the parameter where i can clean rotates via python in the node “bone”, I look in dependences and should be called “pre_xform”, but dont works for me….

The script is quite long but at the end this is the line who calls the parameter.

bone.parm(“pre_xform”).set(2)

Thanks
editor compositor
User Avatar
Member
402 posts
Joined: June 2014
Offline
Hello,

I think you're probably looking for bone.moveParmRotateIntoPreTransform(). Or you can use bone.setPreTransform(some_Matrix4)
Henry Dean
User Avatar
Member
14 posts
Joined: Oct. 2010
Offline
Hello friedasparagus,

thanks for the quick repluy. I try bone.moveParmRotateIntoPreTransform() but this reset the orientation of the Rotation,not cleaned maintaining the rotation orientation…. about the other (bone.setPreTransform(some_Matrix4)) .. I don't Know how Matrix apply to clean the rotates.

Thanks
editor compositor
User Avatar
Member
8532 posts
Joined: July 2007
Online
if you need pre-transforms as editable parameters just add them to your objects from gear menu/Node Properties
Edited by tamte - Aug. 9, 2018 22:14:22
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links