![]() |
#3
|
|||
|
|||
another ABSOLUTE_LOCAL question
HI,
I want to manually animate avatar's left hand. Here is my code: object = viz.add('Female.cfg') object.rotate(180,0,0) object.translate(0,0,7) lefthand = object.getbone('skel_HandL') lefthand.lock() print ' ' pa = lefthand.get(viz.POSITION, viz.ABSOLUTE_WORLD) print '(BEFORE) World Position of left hand is: ', pa[0], ', ', pa[1], ', ', pa[2] lefthand.translate(2,12,3,viz.xxxxxxxxxx) print ' ' pa = lefthand.get(viz.POSITION, viz.ABSOLUTE_WORLD) print '(AFTER) World Position of left hand is: ', pa[0], ', ', pa[1], ', ', pa[2] In the position of xxxxxxxxxx, I tried ABSOLUTE_WORLD, ABSOLUTE_LOCAL, RELATIVE_LOCAL, and RELATIVE_WORLD. But only ABSOLUTE_LOCAL changed the position of the left hand. And even with ABSOLUTE_LOCAL, the printed position before/after translate command were the same. Did I miss something? Thanks. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|