Editor.Components.HeadAttachmentPointType
EnumSettings used with Editor.Components.Head.
Index
Enumeration Members
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
// Create a Head component and set the attachment point
const obj = scene.createSceneObject('HeadAttachment');
const head = obj.addComponent('Head');
head.attachmentPoint = Editor.Components.HeadAttachmentPointType.Forehead;
head.faceIndex = 0;
console.log(`attachmentPoint: ${head.attachmentPoint}`);
Enumeration Members
CandideCenter
CandideCenter:
number
Attachment at the Candide model center.
Chin
Chin:
number
Attachment at the chin.
Forehead
Forehead:
number
Attachment at the center forehead.
HeadCenter
HeadCenter:
number
Attachment at the center of the head.
LeftCheek
LeftCheek:
number
Attachment at the left cheek.
LeftEyeballCenter
LeftEyeballCenter:
number
Attachment at the center of the left eyeball.
LeftForehead
LeftForehead:
number
Attachment at the left forehead.
MouthCenter
MouthCenter:
number
Attachment at the center of the mouth.
RightCheek
RightCheek:
number
Attachment at the right cheek.
RightEyeballCenter
RightEyeballCenter:
number
Attachment at the center of the right eyeball.
RightForehead
RightForehead:
number
Attachment at the right forehead.
TriangleBarycentric
TriangleBarycentric:
number
Attachment using triangle barycentric coordinates.