objectType( )

objectType ( ) : Type.DataObjectType;

Returns

An object type that describes a 3D object which adapts to the shape of the user's face, and deforms to movement on the face.

Example

In the example below, the FaceInstance's returned object type is assigned as the type of the Plane object.

const Plane = symbol.nodes.Plane;
const myFaceFinder = Z.FaceFinder();

myFaceFinder.on("newinstance", (e) => {

    let dataObjectType = e.objectType();
    Plane.type(dataObjectType);
});

By calling the skin(...) setter function on the Plane object above, Face Paint functionality can be recreated.

zapcode branded_zapcode i