View Single Post
  #2  
Old 03-04-2010, 08:28 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can change the color of an avatar mesh. The avatars included have a body mesh and head mesh. The following shows to change the color of those.
Code:
import viz
viz.go()

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

meshes = male.getMeshList()

vizact.onkeydown('1', male.color, viz.BLUE, meshes[0])
vizact.onkeydown('2', male.color, viz.BLUE, meshes[1])
Reply With Quote