UIMode Op

UIMode

Outputs true if patch is executed in the cables editor (UI)


This op is useful to find out if the patch is viewed from inside the cables editor UI or embedded into a website.
This can be helpful, e.g. if you want to display debug information only when working on the patch, but not when it is shown publicly (outside the editor).

Canvas Mode is 0 for default, 1 for patch background mode (ctrl+shift+enter), 2 for fullscreen (ctrl+enter)


Full Name
  • Ops.Cables.UIMode
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


OUTPUT PORTS


UI (booleanNumber)

True if the patch is viewed inside the cables editor

Overlay Mode (booleanNumber)
Remote Viewer (booleanNumber)

True if the patch is viewed inside the cables remote viewer

Is Standalone (booleanNumber)
Canvas Mode (Number)
Patch Field Visible (booleanNumber)

 

Patches using UIMode

  • Examples
  • Public
  • My Patches

Changelog


featureadd output boolean for remote vieweruser avatarstephan - 2022-03-07 18:36
featureAdded output port: Is overlay mode activated right now ? (hotkey "o")user avatarpandur - 2024-07-10 10:49
featureAdded output "Is Standalone" is true if we are in cables electron standaloneuser avatarpandur - 2024-09-06 16:26