WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Head mesh indirection (https://forum.worldviz.com/showthread.php?t=2818)

Enlil 07-07-2010 07:05 AM

Head mesh indirection
 
Hello,
I am trying to make an avatar head disappear. I would like to use the 'head_mesh' that is defined to allow setFace to make a head invisible, but an avatar.visible(viz.OFF, 'head_mesh') does not work. I also tried getting the meshes from getMeshList(), but that seems to return strings. How do I access the mesh to make it invisible?

Thanks,
Christian

Jeff 07-08-2010 04:57 AM

The following will hide the head mesh. The first name in the list is for the head mesh.
Code:

avatar = viz.add('vcc_male.cfg', pos=[0,0,5], euler=[180,0,0])

list = avatar.getMeshList()
avatar.visible(0,list[0])


Enlil 07-08-2010 08:11 AM

Thanks!

Christian


All times are GMT -7. The time now is 02:22 PM.

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