I have a chain of boxes, assuming the role of bones for a character rig. I've no IK, just simple parenting. My root is the arm, then forearm, hand, fingers and thumb... I cloned the boxes before linking, to have the same geometry without any link, and renamed myBoneName_S . Now I just want to apply the snapshot's transform to my bones, with this little script :
sel = getCurrentSelection ()
nam = for i in selection collect i.name
for i in nam do execute ("selectMore $" + i + "_S")
fake = getCurrentSelection ()
for i = 1 to sel.count do
sel[i].transform = fake[i].transform
When you try this script on the scene, the bones are aligning to the snaps, but if you redo it few times, fingers begin to move, then hand, then forearm. The arm (root) stay fixed.
Can you help me to remove this weird offset ? I think it's a link problem, but I cannot unlink my bones before to change the transforms !
Thank you very much for reading me, and helping me if you can,