Desktop control

EnableAudioPreview lives under Audio diagnostics since it primarily affects the audio metering surface.

Function Returns Description
OpenInDesktopBrowser(urlString: string) void Launches the given http:// or https:// URL in the user's default desktop browser on a background Task. URLs with other schemes are silently ignored to prevent arbitrary process launches.
ActivateEditMode() void Switches the project out of interactive mode and asks the host application to activate edit mode via a SetEditMode message.
ActivateInteractiveMode() void Switches the project into interactive mode and asks the host application to activate interactive mode via a SetInteractiveMode message.
DisableVideoPreview() void Asks the host application to disable the video preview surface via a DisableVideoPreview message.
EnableVideoPreview() void Asks the host application to (re)enable the video preview surface via a EnableVideoPreview message.
ShowInput(inputName: string) bool Shows the named input in Composer Desktop: switches to the Inputs tab, opens the folder the input is in and selects it, as clicking it would. Use it to point a viewer at an input from a tutorial or demo. Returns false if no input has that name. Has no effect in the Runtime, which has no window.
ShowOperator(sceneName: string, layerName: string, operatorName: string) bool Shows the named operator in Composer Desktop: switches to the Operators tab, selects its layer and expands the operator so its settings are in view. A layer in another scene than the selected one selects that scene first, which also makes it the scene in the preview, as clicking it would. Returns false if the scene, layer or operator is missing. Has no effect in the Runtime.
ShowTarget(sceneName: string, targetName: string) bool Shows the named target in Composer Desktop: switches to the Targets tab, selects the scene it belongs to (each scene has its own targets), then selects and expands the target. Selecting another scene also makes it the scene in the preview, as clicking it would. Returns false if the scene or target is missing. Has no effect in the Runtime.