PDA

View Full Version : Head mesh indirection


Enlil
07-07-2010, 07:05 AM
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.
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