WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-03-2010, 09:43 AM
Green Green is offline
Join Date: Oct 2009
Posts: 7
change the color of a specific part of an avatar?

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!

Reply With Quote
Old 03-04-2010, 08:28 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,465
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

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

meshes = male.getMeshList()

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

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 change the size of different parts of an avatar? llqqff Vizard 3 02-23-2010 04:16 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
Looking through the eyes of an avatar Frank Verberne Vizard 2 04-01-2008 05:52 AM
How to make avatar's eyes to blink when speaking michelcm3 Vizard 12 01-15-2008 08:48 AM
Change Avatar Head nickyee Vizard 1 06-30-2004 10:08 AM

All times are GMT -7. The time now is 06:32 AM.

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