Lens Scripting API

    Class UpperBodyTrackingAsset

    Configures 3D Upper Body Tracking for the ObjectTracking3D component.

    It is optimized to track with the face and in selfie use cases.

    function createUpperBodyTrackingAsset() {
    var asset = global.assetSystem.createAsset("Asset.UpperBodyTrackingAsset");
    return asset;
    }

    // 3D Upper Body Tracking (skeleton)
    var object3D = script.getSceneObject().getComponent("Component.ObjectTracking3D");
    object3D.trackingAsset = createUpperBodyTrackingAsset();
    object3D.objectIndex = script.faceIndex;

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    name: string

    The name of the Asset in Lens Studio.

    uniqueIdentifier: string

    Methods

    • 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