WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   how to make the viz.connect avater invisible? (

shashkes 10-10-2016 06:17 AM

how to make the viz.connect avater invisible?
Hi, for an experiment I'm running I want the avatar that is created using viz.connect and optotrak sensors and representing the subjects movements to become invisible for some of the trials and visible again for others.
I don't want to remove the avatar because I still want to register the location of the sensors I just want the avatar not to appear on the screen so on some trials the subject gets visual feedback of their movements while on others not.
what is the best way to do that?

Jeff 10-10-2016 06:33 AM

Use the vizconnect avatar's setVisible method. It can be set to viz.ON, viz.OFF, or viz.TOGGLE:


avatar = vizconnect.getAvatar('male_2')

shashkes 10-10-2016 09:04 AM

That didn't work for me. I had to use the getNode3d(), which turned out to be viz.VizAvatar(13). so this worked:

subjectavatar = vizconnect.getAvatar()
print str(subjectavatar.getNode3d())


shashkes 10-10-2016 09:07 AM

oh, I realized if I use male not male_2 avatar so your solution also works if I remove the 2thanks
avatar = vizconnect.getAvatar('male')

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

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