#1
|
|||
|
|||
adding heads to custom avatars
Hello,
I am using the Complete-Characters avatars and attempting to put a custom head (.vzf) on the avatar. There are separate head and body meshes. When I add the head to the appropriate head and neck bones, the head ends up attached on the hand of the avatar. I have tried inputting different bones, and the head seem to randomly attach to different parts of the body unrelated to the bones I specify. How do I get the head to attach to the neck correctly? (I read in another post about hiding the head mesh, so I included that code in my .py. Doesn't seem to help anything.) Here's the code i am using: import viz viz.go() child = viz.add('child02_f_mediumpoly.cfg') child.scale(.01,.01,.01) child.visible(0,'child02_f_head.cmf') child.face('001/001.vzf','Bip01_Head','Bip01_Neck') |
#2
|
|||
|
|||
On the bone names, spaces don't convert to underscores. Heres what I do to add a head:
Code:
face = viz.add( 'biohead_all_morph.vzf' ) avatar.setFace( face, 'Bip01 Head', 'Bip01 Neck' )
__________________
Paul Elliott WorldViz LLC |
#3
|
|||
|
|||
I added the underscores to the bone names in Max in case Vizard was not able to handle the spaces. To test your code, however, I went back to using the regular names with spaces. (the "setFace" command gives me the error "AttributeError: VizAvatar instance has no attribute 'setFace'. So I used the <avatar>.face command again.) Here's the code:
child = viz.add('child.cfg') child.scale(.01,.01,.01) face = viz.add( '001.vzf' ) ##moved the head files into the same folder as the code## child.face( face, 'Bip01 Head', 'Bip01 Neck' ) The head is still attaching to the left hand instead of the neck. Is vizard somehow mixing up the bone names? Thanks, Alexia |
#4
|
|||
|
|||
Perhaps this is a problem with Vizard 2.5. Mabey because these avatars were exported with the Vizard 3.0 cal3D exporter or something. I will test adding heads to the child in Vizard 2.5.
Perahps you would like to try adding a head in Vizard 3.0. I think you'll like it =)
__________________
Paul Elliott WorldViz LLC |
#5
|
|||
|
|||
Seems i don't have any of the Complete Avatars exported with the Vizard2.5 exporter. Would you mind emaling the skeleton (csf) file the avatar is using to support[at]worldviz.com
__________________
Paul Elliott WorldViz LLC |
#6
|
|||
|
|||
I sent the skeleton file to the support email address.
I tried attaching the head in Vizard 3.0 and it attaches to the foot now. Hopefully the skeleton file will provide some answers. |
|
|