Editor Scripting API

    A native asset that provides information for object tracking texture. Learn more at LensScripting.ObjectTrackingTextureProvider. Import with Editor.Model.AssetManager#createNativeAsset.

    const model = pluginSystem.findInterface(Editor.Model.IModel);
    const assetManager = model.project.assetManager;

    const destination new Editor.Path('');
    const trackingType = Editor.Assets.ObjectTrackingTextureType.Nails;

    const result = assetManager.createNativeAsset('ObjectTrackingTexture', 'Object Tracking Texture', destination);
    result.trackingType = trackingType;
    const objectTrackingTexParam = new Editor.Assets.TextureParameter(objectTrackingTexImage.id);

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    cacheFile: Path
    id: Uuid

    The unique id of the entity.

    name: string

    The name of the asset.

    type: string

    The entity's type.

    Methods

    • Beta

      Parameters

      • type: string

      Returns boolean

    • Beta

      Swap this entity for another one based on a JSON of the current entity id and the target entity id.

      Parameters

      • referenceMapping: object

      Returns void

    MMNEPVFCICPMFPCPTTAAATR