still didn't work :'(
note: when i do avatar.idle(4) it doesn't do it right either. (it makes the avatar stand each time it finishes an animation)
but anyway, this following code still makes the man stand up when finished with the head animation:
any ideas?
(btw, state(4) is my custom sitting animation.)
--------------------------------------------------------------
import viz
viz.go()
avatar=viz.add('objects/Male.cfg')
avatar.state(4)
avatar.cal.pose(-1)
def mykey(key):
if key == 't':
movehead=avatar.headto(90,0,0)
avatar.act(movehead)
viz.callback(viz.KEYBOARD_EVENT, 'mykey')
|