load_image
Load an image into Blender, validating the file path and automatically setting non-color space for data maps. Reports image metadata after loading.
Instructions
Load an image file into Blender and report its metadata.
Paths are validated: reads outside the workspace (or the open .blend file's folder) are refused unless the user enables it in the add-on preferences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rename the image datablock | |
| pack | No | Embed the image in the blend file | |
| role | No | What the map is for; data maps (normal, roughness, metallic, ao) are set to Non-Color automatically | |
| filepath | Yes | Path to the image. Must be inside the workspace directory or next to the open .blend file. | |
| colorspace | No | Explicit colour space, e.g. 'sRGB' or 'Non-Color' |