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.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
a | Z.FaceInstance.AttachmentPoint | Returns a node content can be positioned relative to. |
Returns
Section titled “Returns”this;
Example
Section titled “Example”const myFaceFinder = Z.FaceFinder();
myFaceFinder.on("newinstance", (e) => { let noseBridge = e.attachmentPoint(Z.FaceInstance.AttachmentPoint.nose_bridge); symbol.nodes.myNode.relativeTo(noseBridge);});