Skip to content

nexus.app

nexus · scripts/+nexus/app.m

: nexus.app (obj)
: schema = nexus.app (obj)

Register obj as the active Nexus IDE application object.

Convenience wrapper that:

  1. Calls nxide_obj_schema (obj) to reflect the handle-class instance into an IDE parameter schema (_LUT / _CLASS sibling conventions, SetObservable properties).
  2. Ensures the Nexus IDE side channel is open (NEXUS_IDE=1). This function does not spawn a GUI process: when the interpreter was not started by nexus-ide it warns and still registers obj locally so a later IDE connect can pick it up (see nexus#2359).
  3. Stores obj as the active app object in root appdata (__nexus_active_app__) and, when NEXUS_IDE=1, emits an OSC 7770 object_schema side-channel frame so the Parameters panel can render controls.

Copy nexus_app_template.m for the minimal class contract (SetObservable properties, Name_LUT/Name_CLASS, RUN/STOP/STATUS).