WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-17-2007, 06:09 AM
Joran Joran is offline
Member
 
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
Avatar animation

Hello,

I am having some big problems with avatar animations. So here an example of something I can not get to work. I want an avatar, to fall dead, lay down for 2 seconds and then stand up again. Here my attempt:

Code:
import viz

viz.go()

man = viz.add('male.cfg')

def onKeyUp(key):
	if key == ' ':
		man.addAction(vizact.animation(7, freeze = True))
		man.addAction(vizact.waittime(2))
		man.addAction(vizact.animation(1))

viz.callback(viz.KEYUP_EVENT,onKeyUp)
And this doesn't work at all. How should I do it?

Greetings, Joran.
Reply With Quote
 


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 12:42 AM.


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