set_material_function_input
Modify the properties of a FunctionInput node in a material function, including name, type, description, sort priority, and default value.
Instructions
Modify an existing FunctionInput node's properties.
Args: function_path: Full path to existing material function node_index: Index of the FunctionInput node (from get_material_function_info) input_name: New pin name input_type: New type (Scalar/Vector2/Vector3/Vector4/Texture2D/TextureCube/ Texture2DArray/VolumeTexture/StaticBool/MaterialAttributes/ TextureExternal/Bool/Substrate) description: New tooltip sort_priority: New display order use_preview_as_default: Use preview value as default preview_value: JSON array for default value (e.g. "[0.5]", "[1.0, 0.0, 0.0, 1.0]")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_name | No | ||
| input_type | No | ||
| node_index | Yes | ||
| description | No | ||
| function_path | Yes | ||
| preview_value | No | ||
| sort_priority | No | ||
| use_preview_as_default | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |