WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-08-2008, 04:58 PM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Unhappy 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()
I attached a screenshot as well.

Thank you for your assistance.
Attached Thumbnails
Click image for larger version

Name:	ss.jpg
Views:	791
Size:	287.5 KB
ID:	227  
Reply With Quote
  #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
  #3  
Old 04-09-2008, 07:14 AM
k_iwan k_iwan is offline
Member
 
Join Date: May 2006
Posts: 115
Red face

node='casual32_m_highpoly.CMFX'?
I've never seen that 'node' before. I'll give it a try. Thank you for your reply.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 04:39 PM.


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