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)


Edit Documentation

Full Name
  • Ops.Cables.UIMode
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

OUTPUT PORTS


UI (boolean Number)

True if the patch is viewed inside the cables editor

Remote Viewer (boolean Number)

True if the patch is viewed inside the cables remote viewer

Canvas Mode (Number)
Patch Field Visible (boolean Number)

Patches using UIMode

  • Examples
  • Public
  • My Patches

Changelog


add output boolean for remote vieweruser avatarstephan - 2022-03-07 18:36