I tried putting a position point in the bonespinto function. This gives strange results. For example when I move the mainview to a position from where the avatar is visible and press spacebar the arm moves but not the the correct position.
Also after pressing spacebar a second time without moving the mainview the arm moves. Why is this, this shouldn't happen right?
Code:
import viz
viz.go()
point = vizact.boneSpinTo('Bip01 R UpperArm',mode=viz.AVATAR_WORLD,point=viz.MainView.getPosition(),speed=90)
#Add avatar
model = viz.add('vcc_female.cfg',euler=(180,0,0))
def mykeyboard(key):
if key == " " :
model.runAction(point)
viz.callback(viz.KEYBOARD_EVENT,mykeyboard)
I would like to make an animation sequence of an avatar pointing to an object and going back to it's neutral pose again.
Can someone help me with this?
Thank you!