View Single Post
  #2  
Old 01-19-2010, 10:02 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The state method has an optional delay argument to specify how long it will take to fully blend in the new state and blend out the old one to give a smooth transition. In the following, press the spacebar and after 2 seconds animation 5 will be blended in.
Code:
import viz
viz.go()

male = viz.add('vcc_male.cfg', pos = [0,0,5], euler = [180,0,0])
male.state(1)

vizact.onkeydown(' ', male.state,5,2)
Reply With Quote