Description

Mesh provider for a Face Mesh. Accessible through the control property on a Face Mesh RenderMesh.

Example

// @input Asset.RenderMesh faceMesh

var mouthCloseWeight = script.faceMesh.control.getExpressionWeightByName(Expressions.MouthClose);
interface FaceRenderObjectProvider {
    earGeometryEnabled: boolean;
    eyeCornerGeometryEnabled: boolean;
    eyeGeometryEnabled: boolean;
    faceGeometryEnabled: boolean;
    faceIndex: number;
    mouthGeometryEnabled: boolean;
    skullGeometryEnabled: boolean;
    getExpressionNames(): string[];
    getExpressionWeightByName(expressionName): number;
    getExpressionWeights(): Float32Array;
    getLoadStatus(): LoadStatus;
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
}

Hierarchy (view full)

Properties

earGeometryEnabled: boolean

Description

When true, ears will be included in the Face Mesh geometry.

eyeCornerGeometryEnabled: boolean

Description

When true, a small area in the corners of the eyes will be included in the Face Mesh geometry.

eyeGeometryEnabled: boolean

Description

When true, eyes will be included in the Face Mesh geometry.

faceGeometryEnabled: boolean

Description

When true, the general face (not including eyes and mouth) will be included in the Face Mesh geometry.

faceIndex: number

Description

Index of the face this FaceRenderObjectProvider mirrors.

mouthGeometryEnabled: boolean

Description

When true, the mouth will be included in the Face Mesh geometry.

skullGeometryEnabled: boolean

Description

When true, the skull will be included in the Face Mesh geometry.

Methods

  • Returns string[]

    Description

    Returns a list of all expression names being tracked.

  • Parameters

    • expressionName: string

    Returns number

    Description

    Returns the weight of the expression with the passed in name. See Expressions for valid expression names.

  • Returns Float32Array

    Description

    Returns a Float32Array of all expression weights being tracked.

  • Parameters

    • type: string

    Returns boolean

    Description

    Returns true if the object matches or derives from the passed in type.

  • Parameters

    Returns boolean

    Description

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Generated using TypeDoc