<viz>.addFace

Adds a face

 

<viz>.addFace(
    filename    
    parent = viz.WORLD    
    scene = viz.MainScene    

)

 

filename

Filename of face object, usually ends with '.vzf'


parent = viz.WORLD

viz.WORLD
viz.SCREEN
viz.HEAD
viz.ORTHO
<node3d> object


scene = viz.MainScene

If the parent is viz.WORLD, viz.SCREEN, or viz.HEAD, then the argument represents the scene to add the object to.
If the parent is viz.ORTHO, then the argument represents the window to add the object to.
If the parent is a valid node3d object, then the argument is ignored.


Remarks

A face object is usually created through PeopleMaker. It allows adding morph targets to a mesh and can replace the existing head of certain avatars.

Return Value

<node3d:face> object

Example

face = viz.addFace('biohead_all_morph.vzf')