WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-10-2016, 05:17 AM
shashkes shashkes is offline
Member
 
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?
Thanks!
Reply With Quote
  #2  
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:

Code:
avatar = vizconnect.getAvatar('male_2')
avatar.setVisible(viz.OFF)
Reply With Quote
  #3  
Old 10-10-2016, 08:04 AM
shashkes shashkes is offline
Member
 
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())

viz.VizAvatar(13).visible(viz.OFF)
Reply With Quote
  #4  
Old 10-10-2016, 08:07 AM
shashkes shashkes is offline
Member
 
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')
avatar.setVisible(viz.OFF)
Reply With Quote
Reply

Tags
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 08:16 PM.


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