Lens Scripting API

    Class MLAsset

    Represents a machine learning model that can be integrated with an MLComponent.

    //@input Asset.MLAsset model

    var mlComponent = script.sceneObject.createComponent('MLComponent');
    mlComponent.model = script.model;

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    name: string

    The name of the Asset in Lens Studio.

    uniqueIdentifier: string

    Methods

    • Returns model metadata as JSON object.

      Returns object

    • Returns the name of this object's type.

      Returns string

    • 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

    MMNEPVFCICPMFPCPTTAAATR