WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 11-29-2004, 05:26 PM
shai shai is offline
Member
 
Join Date: Oct 2004
Posts: 29
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')
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC