WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   scaling avatar's body parts (https://forum.worldviz.com/showthread.php?t=340)

shai 05-06-2005 01:29 PM

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

farshizzo 05-09-2005 11:08 AM

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.

wouters 02-29-2008 12:02 PM

Is there anyway that we could scale the different parts of the avatar by scaling the bones inside of avatar?

farshizzo 02-29-2008 01:18 PM

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)


wouters 03-03-2008 08:35 AM

Thanks for your help!


All times are GMT -7. The time now is 02:25 PM.

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