Skip to content

attachmentPoint(...)

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.

attachmentPoint (a : Z.FaceInstance.AttachmentPoint) : this;

When an AttachmentPoint is passed in, this function will return a node that content can be placed relative to.

ParameterTypeDescription
aZ.FaceInstance.AttachmentPointReturns a node content can be positioned relative to.

this;

const myFaceFinder = Z.FaceFinder();
myFaceFinder.on("newinstance", (e) => {
let noseBridge = e.attachmentPoint(Z.FaceInstance.AttachmentPoint.nose_bridge);
symbol.nodes.myNode.relativeTo(noseBridge);
});