add_metasound_graph_output
Add a graph output (default Audio) to a MetaSound Source and save the asset; duplicates are reported, invalid types or failed saves return errors.
Instructions
Add a graph output of data_type (default Audio; others include Float, Int32, Bool, String and Trigger) to an existing MetaSound Source through the MetaSound builder, inside an undo transaction, then save the asset. An unregistered data_type or a source that does not load is an error. A name already used by an output is left untouched: with the same data_type the call succeeds with added=false and already_exists=true and saves nothing; with another data_type it is an error. success is false, with save_error, when the save fails (during PIE, for one). Inverse: remove_metasound_graph_output.
Returns: { asset_path: string, output_name: string, data_type: string, added: bool, already_exists?: bool, saved: bool, save_error: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_type | No | Frontend data type for the output node (optional, default "Audio") | |
| output_name | Yes | Name of the graph output node to add. | |
| metasound_path | Yes | Asset path of the MetaSound Source. |