create_image_texture_node
Add an image texture node to a material, optionally connecting it to a Principled BSDF input. Supports loading images, setting color space roles, and auto-inserting a Normal Map node for normal maps.
Instructions
Add an Image Texture node and wire it into the material.
Give either image (already loaded) or filepath. With role='normal' the
image is set to Non-Color and routed through a Normal Map node, which is
what game normal maps need.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| role | No | Determines the Principled input it is wired to and the colour space. 'normal' inserts a Normal Map node automatically. | |
| image | No | Name of an already loaded image | |
| connect | No | Wire it into the Principled BSDF | |
| filepath | No | Load this file instead (same path rules as load_image) | |
| location | No | ||
| material | Yes | Material to add the node to | |
| extension | No | ||
| connect_to | No | Override the target socket, e.g. 'Base Color' | |
| interpolation | No |