attachmentPoint(...)

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

Parameter Type Description
a Z.FaceInstance.AttachmentPoint Returns a node content can be positioned relative to.

Returns

this;

Example

const myFaceFinder = Z.FaceFinder();

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