edit_action_graph
Edit an existing OmniGraph Action Graph by setting attribute values or adding connections. Update ScriptNode scripts, attributes, or connections.
Instructions
Edit an existing OmniGraph Action Graph: set attribute values or add connections.
Use this to update ScriptNode scripts (inline or file path), change attribute values, or add new connections on an already-created graph.
For ScriptNode with a local file script, set both usePath and scriptPath: values=[ {"attr": "ScriptNode.inputs:usePath", "value": true}, {"attr": "ScriptNode.inputs:scriptPath", "value": "/path/to/script.py"} ]
For ScriptNode with inline script: values=[ {"attr": "ScriptNode.inputs:usePath", "value": false}, {"attr": "ScriptNode.inputs:script", "value": "def compute(db): ..."} ]
Args: graph_path: USD prim path of the existing graph (default "/World/ActionGraph"). values: List of attribute value overrides. Each dict has: - "attr": Attribute path relative to graph (e.g. "ScriptNode.inputs:script") - "value": The value to set connections: List of [source_attr, target_attr] pairs to add.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_path | No | /World/ActionGraph | |
| values | No | ||
| connections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |