![]() |
#2
|
|||
|
|||
You could link an object to the avatar and change it's emissive property to simulate a blinking light:
Code:
import viz import vizact import vizshape viz.go() ball = vizshape.addSphere(radius=.03,pos=[0,1.8,4]) ToggleLight = vizact.sequence( [vizact.waittime(0.3), vizact.method.emissive(viz.YELLOW), vizact.waittime(0.3), vizact.method.emissive([0,0,0])], viz.FOREVER) ball.runAction(ToggleLight) avatar = viz.addAvatar('vcc_male2.cfg',pos=[0,0,5],euler=[180,0,0]) headbone = avatar.getbone('Bip01 Head') link= viz.link( headbone, ball) link.preTrans([0,0.3,0]) avatar.runAction(vizact.walkTo([-5,0,30])) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Avatar & Motion Capture Interface | Angie | Vizard | 1 | 08-05-2010 06:17 PM |
avatar scale and link.setpos conflict? | sircedric4 | Vizard | 0 | 09-29-2009 07:48 AM |
Collision of an avatar with a quad | Frank Verberne | Vizard | 8 | 06-04-2008 09:44 AM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |