#1
|
|||
|
|||
Fading in and out parts of virtual actor...
Hi,
I have an actor composed of several meshes. Now, I'd like to fade out one of the part. I did try to use the fade out command but it doesn't work. How should I do this in vizard? Code:
ant = viz.add('Cfortis_16b_fixingAnimation.cfg') ant.state(2) #running animation ant.setAnimationSpeed(0,5.0) Mandibles = ant.getChild('Cfortis_16b_fixingAnimation_Mandibles.xmf') fadeout = vizact.fade(1,0,5) Mandibles.add(fadeout) viz.go() Thank you for your assistance. |
#2
|
|||
|
|||
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])) |
#3
|
|||
|
|||
node='casual32_m_highpoly.CMFX'?
I've never seen that 'node' before. I'll give it a try. Thank you for your reply. |
|
|