PDA

View Full Version : Adding custom faces


mjabon
03-30-2009, 08:02 PM
Hello. I am trying to add a custom .vzf face to my avatar, but the face simply does not show up. I have read the posts on adding custom heads and tried the tips in them to no avail. We are just using a stock avatar body, but want the face of the child (the new vzf) on the avatar. We tried the following:

## CHILD SETUP
child = viz.add("child/child.cfg")
# texture with children's clothes
child.texture(textures[gender], 'm_legs.cmx')
child.texture(textures[gender], 'm_torso_LS.cmx')
child.texture(textures[gender], 'm_shoes.cmx')
# add custom head
childFace = viz.addFace(headFilename)
childFace.scale(.30, .30, .30)
child.setFace(childFace)

We also tried

## CHILD SETUP
child = viz.add("child/child.cfg")
# texture with children's clothes
child.texture(textures[gender], 'm_legs.cmx')
child.texture(textures[gender], 'm_torso_LS.cmx')
child.texture(textures[gender], 'm_shoes.cmx')
# add custom head
childFace = viz.add(headFilename)
childFace.scale(.30, .30, .30)
child.face(childFace)

None work. We just get the default face showing up.

Any ideas?

Thank you.

Jeff
03-31-2009, 11:55 PM
Are you getting any error when you try that? Have you tried specifying the head and neckbone?
childFace = viz.addFace(headFilename)
child.setFace( childFace, 'Bip01 Head', 'Bip01 Neck' )

Gladsomebeast
04-01-2009, 08:34 PM
Perhaps the scale of the head is off?

The PeopleMaker app has that automatic scale to good size button.