python FBX SDK for help version 2020

python FBX SDK for help version 2020

luoww
Explorer Explorer
339 Views
0 Replies
Message 1 of 1

python FBX SDK for help version 2020

luoww
Explorer
Explorer

i have a quaternion data file, it is a human skeleton quaternion  in global world space. i need to translate it from global to local,.

i try to do it, but this is nothing changed with the local data.

my main code is:

 

...... load fbx, scene, and get node
# default is xyzw: 0,0,0,1
angle=[0.36,0.44,0.022,0.822]
ftime = FbxTime()
ftime.SetFrame(0)
nGlobal = node.EvaluateGlobalTransform(ftime)
nLocal = node.EvaluateLocalTransform(ftime)
print(node.GetName(), list(nLocal.GetQ()))
nGlobal.SetQ(FbxQuaternion(angle[0], angle[1], angle[2], angle[3]))
nLocal = node.EvaluateLocalTransform(ftime)
print(node.GetName(), list(nLocal.GetQ())) 

the local quater data have no changed,

how to solve it ?  thank you !

0 Likes
340 Views
0 Replies
Replies (0)