Skip to main content

Editor.Components.FaceInsetRegion

Enum

The same entity as in Lens Scripting.

Index

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;

// Create a FaceInsetVisual and set the face region
const obj = scene.createSceneObject('FaceInset');
const inset = obj.addComponent('FaceInsetVisual');
inset.faceRegion = Editor.Components.FaceInsetRegion.Mouth;
inset.faceIndex = 0;
console.log(`faceRegion: ${inset.faceRegion}`);

Enumeration Members

Custom

Custom: number

Custom face region defined by coordinates.


Face

Face: number

Entire face region.


LeftEye

LeftEye: number

Left eye region of the face.


Mouth

Mouth: number

Mouth region of the face.


Nose

Nose: number

Nose region of the face.


RightEye

RightEye: number

Right eye region of the face.

See also

LensScripting.FaceInsetRegion. Use with Editor.Components.FaceInsetVisual.