Preparing search index...

    Metadata of the current project's Lens.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const metaInfo = model.project.metaInfo;

    console.log(`Lens name: ${metaInfo.lensName}`);
    console.log(`Is lens name valid: ${Editor.Model.MetaInfo.isLensNameValid(metaInfo.lensName)}`);
    console.log(`Icon path: ${metaInfo.iconPath.toString()}`);
    console.log(`Is icon set: ${metaInfo.isIconSet}`);
    console.log(`Activation camera: ${metaInfo.activationCamera}`);

    const applicability: Editor.Model.LensApplicability[] = metaInfo.lensApplicability;
    console.log(`Lens applicability count: ${applicability.length}`);
    for (const a of applicability) {
    console.log(` Applicability value: ${a}`);
    }
    Index

    Constructors

    Properties

    activationCamera: LensActivationCamera

    The camera which will be activated when this Lens is turned on.

    iconPath: Path

    The absolute path to the Lens Icon.

    isIconSet: boolean

    Whether an Lens icon has been set.

    lensApplicability: LensApplicability[]

    Where the Lens can be used.

    lensClientCompatibilities: LensClientCompatibility[]
    lensName: string

    The publicly visible name of the Lens.

    videoPreviewPath: Path

    Methods

    • Checks whether the Lens Name is valid. See Project Info guide to learn more.

      Parameters

      • lensName: string

      Returns boolean

    • Sets the icon as the Lens' icon.

      Parameters

      Returns void

    • Parameters

      Returns void