Green
03-03-2010, 09:43 AM
Hi, I'm working on avatars. I want to change the color of a specific part of an avatar, like the trunk or the whole body except the head. Can anybody tell me how to achieve this? Thanks!
Xiaoli
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.
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])
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.