beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

UIMode Op



UIMode
Namespace: Ops.Cables

Op author: pandur

Test Patches: 1 Test

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)



Inputs

Outputs

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)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Patches using UIMode

  • Examples
  • Public
  • My Patches

Changelog


add output boolean for remote viewer
2022-03-07 - stephan