UIMode Op
Outputs true
if patch is executed in the cables editor (UI)
Summary (oneliner)
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)
- Ops.Cables.UIMode
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch UiMode Example
OUTPUT PORTS
True
if the patch is viewed inside the cables editor
True
if the patch is viewed inside the cables remote viewer