add_niagara_graph_node
Create a Niagara node inside a scratch-pad, dynamic-input, or module graph. Accepts node type, position, and type-specific parameters like op name or function script.
Instructions
Create a new node inside a Niagara scratch-pad / dynamic-input / module graph.
Mirrors the node-creation pattern used by the Niagara editor schema actions (FGraphNodeCreator + AllocateDefaultPins + NotifyGraphChanged). Spawns on both asset and edit-copy graphs when a system is open.
Args: node_type: One of "Op", "FunctionCall", "DataInterfaceFunction", "ParameterMapGet", "ParameterMapSet", "Reroute", "Input" pos_x, pos_y: Graph position op_name: (node_type=Op) — discover via get_niagara_schema_actions (e.g. "Numeric::Add", "Numeric::Mul", "Numeric::Length") function_script: (node_type=FunctionCall) UNiagaraScript asset path input_name + input_type: (node_type=Input) variable name + Niagara type di_class + function_name: (node_type=DataInterfaceFunction) — wraps a data-interface member function. Discover via list_niagara_data_interface_functions. Examples: di_class="NiagaraDataInterfaceArrayPosition", function_name="Length"
Use list_niagara_script_parameters after to verify the pin layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos_x | No | ||
| pos_y | No | ||
| op_name | No | ||
| di_class | No | ||
| node_type | Yes | ||
| input_name | No | ||
| input_type | No | ||
| module_name | No | ||
| script_path | No | ||
| system_path | No | ||
| function_name | No | ||
| function_script | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |