live_eval
Execute JavaScript inside Studio One's script engine to inspect undocumented host objects and return results, provided the bridge was installed with --allow-eval.
Instructions
Run JavaScript inside Studio One's script engine and return the result (host objects are described to a depth). Globals: Host, PreSonus, component, describe. Only works when the bridge was installed with --allow-eval. Useful for exploring the undocumented object model, e.g. Host.Objects.getObjectByUrl('://studioapp/DocumentManager'). Do not throw, and check that a host member exists (typeof) before calling it: either one pops a modal Scripting Error dialog in Studio One.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Function body; use `return` to send a value back | |
| depth | No |