WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-22-2007, 01:04 AM
vAlexia vAlexia is offline
Member
 
Join Date: Sep 2006
Location: Stanford, CA
Posts: 10
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')
Reply With Quote
  #2  
Old 01-30-2007, 10:35 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
  #3  
Old 02-02-2007, 04:15 PM
vAlexia vAlexia is offline
Member
 
Join Date: Sep 2006
Location: Stanford, CA
Posts: 10
Exclamation

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
Reply With Quote
  #4  
Old 02-02-2007, 04:29 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
  #5  
Old 02-02-2007, 04:55 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
  #6  
Old 02-13-2007, 12:14 PM
vAlexia vAlexia is offline
Member
 
Join Date: Sep 2006
Location: Stanford, CA
Posts: 10
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.
Reply With Quote
Reply


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 04:51 PM.


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