WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-24-2013, 07:58 AM
Kyman2008 Kyman2008 is offline
Join Date: Jul 2012
Posts: 19
Flashing Light Linked to Avatar


I am developing a training module that I would like to have an avatars position tracked in. I have the avatar tracked now I would like to add a blinking or flashing light that is somehow attached to the avatar so that the avatar is more easily seen while being tracked. Is there anyway that I may do this? This is what I have tried so far....

avatar = viz.addAvatar('vcc_male.cfg', pos= viz.MainView.getPosition())

link= viz.MainView, avatar)

light5 = viz.addLight()

headbone = avatar.getbone('Bip01 Head')
link= headbone, light5)

Reply With Quote
Old 05-24-2013, 12:24 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
You could link an object to the avatar and change it's emissive property to simulate a blinking light:
import viz
import vizact
import vizshape

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)

avatar = viz.addAvatar('vcc_male2.cfg',pos=[0,0,5],euler=[180,0,0])
headbone = avatar.getbone('Bip01 Head')
link= headbone, ball)

Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avatar & Motion Capture Interface Angie Vizard 1 08-05-2010 07:17 PM
avatar scale and link.setpos conflict? sircedric4 Vizard 0 09-29-2009 08:48 AM
Collision of an avatar with a quad Frank Verberne Vizard 8 06-04-2008 10:44 AM
Looking through the eyes of an avatar Frank Verberne Vizard 2 04-01-2008 06:52 AM
How to make avatar's eyes to blink when speaking michelcm3 Vizard 12 01-15-2008 09:48 AM

All times are GMT -7. The time now is 12:42 PM.

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