Vizard 8 » Command Index » Vizard modules » viz » <viz>.addFace
8.1

<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.ORTHO
<node3d> object
scene = viz.MainScene
If the parent is viz.WORLD or viz.SCREEN, 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 can replace the existing head of certain avatars.

Return Value

<node3d:face> object

Example

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