set_niagara_dynamic_input
Assign a random range, linked parameter, custom expression, or custom script as a dynamic input on a Niagara module parameter.
Instructions
Set a dynamic input (random range, linked parameter, custom expression, or arbitrary script) on a module input.
Uses FNiagaraStackGraphUtilities::SetDynamicInputForFunctionInput for the script path, which is the same code path the editor uses when picking a dynamic input from the stack UI.
Args: system_path: Path to the Niagara System asset emitter_name: Name of the target emitter module_name: Name of the module input_name: Name of the input parameter script_usage: Stack the module is in dynamic_input_type: One of: - "random_range" / "uniform_random" — Ranged random (min_value, max_value) - "parameter_link" — Link to an existing parameter (parameter_name) - "custom_expression" — Custom HLSL expression node (expression) - "script" / "asset" — Arbitrary dynamic input script (dynamic_input_script_path) min_value / max_value: Values for random_range types (float or vector JSON object) parameter_name: Parameter name for parameter_link type expression: HLSL expression for custom_expression type dynamic_input_script_path: Asset path of a DynamicInput-usage UNiagaraScript (for dynamic_input_type="script"). Discover candidates via search_niagara_functions. suggested_name: Optional friendly name for the dynamic input in the stack UI pin_defaults: Optional {pin_name: default_value_string} dict applied to the new dynamic input node's own input pins after wiring
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_value | No | ||
| min_value | No | ||
| expression | No | ||
| input_name | Yes | ||
| module_name | Yes | ||
| system_path | Yes | ||
| emitter_name | Yes | ||
| pin_defaults | No | ||
| script_usage | Yes | ||
| parameter_name | No | ||
| suggested_name | No | ||
| dynamic_input_type | Yes | ||
| dynamic_input_script_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |