WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 05-02-2018, 03:56 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The example code below alternates between running and idle animations:

Code:
import viz
import viztask

viz.go()
viz.addChild('piazza.osgb')
female = viz.add('vcc_female.cfg',pos=[0,0,5],euler=[90,0,0])

def ani_change():
	
	for i in range(5):
		female.state(11)
		yield viztask.waitTime(3)
		female.state(1)
		yield viztask.waitTime(1)

viztask.schedule(ani_change())
Reply With Quote
 

Tags
aavatar, animation


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Walking Animation of Avatar pradeep Vizard 1 07-03-2014 03:35 AM
Clarification on CAL3D Avatar Animation in Vizard shivanangel Vizard 2 11-22-2010 07:16 AM
Collision and avatar animation shahramy Vizard 2 10-26-2010 11:47 PM
changing between avatar states dan12345 Vizard 1 06-23-2008 01:39 PM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM


All times are GMT -7. The time now is 07:55 PM.


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