set_shader_node_input
Set the default value of an unconnected input socket on a shader node. Use to dial in procedural texture parameters like scale, detail, and roughness.
Instructions
Set the default value of an unconnected input socket on a shader node.
This is how you dial in a procedural texture: Noise 'Scale' and 'Detail', Mapping 'Scale' and 'Rotation', a Principled BSDF 'Roughness', and so on. A socket that has a link into it ignores its default value, so disconnect it first if you want the default to take effect.
Args: material_name: Name of the material. node_name: Name of the node. socket: Socket name, or a zero-based index. Use the index when names are ambiguous — a Math node has two inputs both called 'Value'. value: A number, a boolean, or a 2-4 component list for vectors and colors (colors are RGBA).
Returns: Dict with the node, socket, and the value that was applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| socket | Yes | ||
| node_name | Yes | ||
| material_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||