WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-10-2016, 05:17 AM
shashkes shashkes is offline
Join Date: Mar 2016
Posts: 11
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?
Reply With Quote
Old 10-10-2016, 05:33 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
Use the vizconnect avatar's setVisible method. It can be set to viz.ON, viz.OFF, or viz.TOGGLE:

avatar = vizconnect.getAvatar('male_2')
Reply With Quote
Old 10-10-2016, 08:04 AM
shashkes shashkes is offline
Join Date: Mar 2016
Posts: 11
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())

Reply With Quote
Old 10-10-2016, 08:07 AM
shashkes shashkes is offline
Join Date: Mar 2016
Posts: 11
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')
Reply With Quote

avatar, visability, vizconnect

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
How to make neck of avatar invisible Frank Verberne Vizard 4 02-05-2014 05:39 AM
How to make character animation sequence wchoi Vizard 3 01-22-2010 08:35 AM
Invisible haptic objects Haptiken Vizard 1 05-05-2009 04:04 PM

All times are GMT -7. The time now is 05:23 AM.

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