I am very new to PyMel (Done Python before) and I found the documentation available very complicated, and in times simply being still MEL and not Python. Very frustrating to do anything here.
I am looking for a way to set the absolute location of one of my joints, as well as the orientation of its bone.
The joint I want to manipulate is found this way:
theJoint = ls("LeftArm")[0]
Now using
theJoint.setAngleX(45)
I am able to set its rotation relative to the parent. But what I need to do is set the position in world space absolute coordinates, as well as the rotation.
There arent any setPositionX()
or setTransform(X)
methods for me to use, so I am wondering if I am even in the right place.
How do I go about this task, and more importantly: Where would I actually start looking for correct and useful command libraries? Its very frustrating to do this without working examples or small demos always relying on the context selected object, which is something I cannot do.