View Single Post
  #2  
Old 04-08-2008, 05:31 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The following code shows how to fade parts of an avatar in and out:
Code:
import viz
viz.go()

model = viz.add('vcc_male.cfg',euler=(180,0,0),pos=(0,0,1))
model.state(1)

fadeOut = vizact.fadeTo(0,time=2,node='casual32_m_highpoly.CMFX')
fadeIn = vizact.fadeTo(1,time=2,node='casual32_m_highpoly.CMFX')

vizact.onkeydown(' ',model.runAction,vizact.choice([fadeOut,fadeIn]))
Reply With Quote