Lens Scripting API

    Class BlendShapes

    Controls blend shapes connected to imported animation content.

    Note: this class has been deprecated. Please use the blend shapes functions in RenderMeshVisual.

    // Sets the weight of a blend shape by ID
    //@input Component.BlendShapes blendShape
    //@input string blendID
    //@input float blendWeight

    script.blendShape.setBlendShape(script.blendID, script.blendWeight);

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    blendNormals: boolean

    If enabled, normal directions are also blended by blend shapes.

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string

    Methods

    • Removes all blend shapes from the BlendShapesVisual.

      Returns void

    • Destroys the component.

      Returns void

    • Returns the weight of blend shape name.

      Parameters

      • name: string

      Returns number

    • Returns the name of this object's type.

      Returns string

    • Returns whether this BlendShapesVisual has a blend shape named name.

      Parameters

      • name: string

      Returns boolean

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

      Parameters

      • type: string

      Returns boolean

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

      Parameters

      Returns boolean

    • Sets the weight of blend shape name.

      Parameters

      • name: string
      • weight: number

      Returns void

    • Clears the blendshape with the matching name from the BlendShapes component.

      Parameters

      • name: string

      Returns void

    MMNEPVFCICPMFPCPTTAAATR