Lens Scripting API

    Enumeration FrameTiming

    Timing options for when MLComponent should start or stop running. Used with MLComponent.runScheduled(). For more information, see the MLComponent Scripting guide.

    //@input Component.MLComponent mlComponent
    script.mlComponent.runScheduled(true, MachineLearning.FrameTiming.Update, MachineLearning.FrameTiming.OnRender);
    Index

    Enumeration Members

    Enumeration Members

    LateUpdate: number

    Run in MLComponent LateUpdate, after all scripts update, but before they get LateUpdate.

    None: number

    Only valid as an end timing. There is no exact time specified when MLComponent should finish its run.

    OnRender: number

    Run at a specific point during frame rendering.

    Update: number

    Run during MLComponent update, before script update.

    MMNEPVFCICPMFPCPTTAAATR