live_eval
Run JavaScript in Studio One's script engine and return the evaluated result with described host objects. Explore the undocumented object model when the bridge allows 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 |