WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   adding heads to custom avatars (https://forum.worldviz.com/showthread.php?t=985)

vAlexia 01-22-2007 12:04 AM

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')

Gladsomebeast 01-30-2007 09:35 AM

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' )


vAlexia 02-02-2007 03:15 PM

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 .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

Gladsomebeast 02-02-2007 03:29 PM

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 =)

Gladsomebeast 02-02-2007 03:55 PM

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

vAlexia 02-13-2007 11:14 AM

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. :)


All times are GMT -7. The time now is 03:04 AM.

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