Preparing search index...

    The same entity as in Lens Scripting.

        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}`);
    Index

    Enumeration Members

    Enumeration Members

    Custom: number

    Custom face region defined by coordinates.

    Face: number

    Entire face region.

    LeftEye: number

    Left eye region of the face.

    Mouth: number

    Mouth region of the face.

    Nose: number

    Nose region of the face.

    RightEye: number

    Right eye region of the face.