objectType( )
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
objectType ( ) : Type.DataObjectType;
Returns
Section titled “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
Section titled “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.