#1
|
|||
|
|||
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? Thanks! |
#2
|
|||
|
|||
Use the vizconnect avatar's setVisible method. It can be set to viz.ON, viz.OFF, or viz.TOGGLE:
Code:
avatar = vizconnect.getAvatar('male_2') avatar.setVisible(viz.OFF) |
#3
|
|||
|
|||
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()) viz.VizAvatar(13).visible(viz.OFF) |
#4
|
|||
|
|||
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') avatar.setVisible(viz.OFF) |
Tags |
avatar, visability, vizconnect |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make neck of avatar invisible | Frank Verberne | Vizard | 4 | 02-05-2014 06:39 AM |
How to make character animation sequence | wchoi | Vizard | 3 | 01-22-2010 09:35 AM |
Invisible haptic objects | Haptiken | Vizard | 1 | 05-05-2009 05:04 PM |