#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Is there anyway that we could scale the different parts of the avatar by scaling the bones inside of avatar?
|
#4
|
|||
|
|||
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) |
#5
|
|||
|
|||
Thanks for your help!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|