[Biped] Get/Set transform discrepancy on certain limbs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
A bit of a noob question here, but I've been unable to properly rotate fingers in toes in biped via scripting.
I am in figure mode whilst doing this, here is a sample script to illustrate this:
import pymxs
rt = pymxs.runtime
bone = rt.getNodeByName('Bip001 R Finger0')
boneQuatRot = rt.biped.getTransform(bone, rt.Name('rotation'))
print(boneQuatRot)
printedQuat = rt.quat(-0.128228, -0.589822, 0.279608, 0.74665)
rt.biped.setTransform(bone, rt.Name('rotation'), printedQuat, False)
Here, I am fetching one of the finger's rotation using getTransform, which from what I read in the docs is the "recommended" way to do it with biped. "printedQuat" is literally me constructing a quaternion based off what was printed from the previous line.
If I manually rotate the bone in the viewport and re-run this script, the bone is properly rotated back to its initial transforms... However the rotation axis is completely skewed, as you can see in the video attached.
I am only able to repro this on fingers and toes, this doesn't occur on any other bone in the hierarchy.
My gut feeling tells me that I am missing something... Probably obvious stuff. 😅