#1
|
|||
|
|||
Scaling Avatars and Setting Bone Positions
Hello there!
I am trying to set the absolute position of individual bones in my avatar, but am getting mysterious results depending on whether I've scaled the avatar first. I determine the parameter sc to be the degree of scaling, and then apply: mySubject = viz.add('./resources/object/vcc_male.cfg') mySubject.setScale([sc,sc,sc]) The problems occur when I set the position of a specific bone. armForeBone = mySubject.getBone('Bip01 R Forearm') armForeBone.lock() ... armForeBone.setPosition([10,20,10],viz.ABS_GLOBAL) print "[10,20,10] Arm Position:",armForeBone.getPosition(viz.ABS_GLOBAL) armForeBone.setPosition([0,0,0],viz.ABS_GLOBAL) print "[0,0,0] Arm Position:",armForeBone.getPosition(viz.ABS_GLOBAL) My hunch is that because I am retrieving the position in global coordinates, and then setting it in global coordinates, I should print out the following: Quote:
Quote:
Quote:
Thanks very much for any assistance, and I hope I've provided enough information! ~Alex |
Thread Tools | |
Display Modes | Rate This Thread |
|
|