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]))