WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1  
Old 05-06-2005, 01:29 PM
shai shai is offline
Member
 
Join Date: Oct 2004
Posts: 29
scaling avatar's body parts

Hello,

i'm trying to scale individual body parts on a female avatar-

i've tried:
"avatar.getchild('f_Head.cmx').scale(2,1,1)"
and
"avatar.getchild('f_Head').scale(2,1,1)"
and
"head=avatar.getchild('f_Head.cmx')
head.scale(2,1,1)"

etc...

and they all didn't work (nothing happens)

is there a way to do this?
thanks,
shai
Reply With Quote
  #2  
Old 05-09-2005, 11:08 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Currently there is no method to scale individual parts of an avatar. If you just want to scale the head and you are using a vzf head, then you can directly scale that.
Reply With Quote
  #3  
Old 02-29-2008, 12:02 PM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Is there anyway that we could scale the different parts of the avatar by scaling the bones inside of avatar?
Reply With Quote
  #4  
Old 02-29-2008, 01:18 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can apply an offset to a bone, which will cause the mesh to stretch. However, if you want to apply a uniform scale, this is not possible. Here is some code showing how to apply bone offsets:
Code:
import viz
viz.go()

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

#Offset the head bone, which will cause the neck to stretch
head  = avatar.getBone('Bip01 Head')
head.offset(0.1,0,0)
Reply With Quote
  #5  
Old 03-03-2008, 08:35 AM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Smile

Thanks for your help!
Reply With Quote
Reply

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


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


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