asset.apply_material
Apply material changes to Blender assets and export updated GLB, BLEND, and FBX files. Set base color, roughness, metallic, and alpha while leaving the source file unchanged.
Instructions
Change only allow-listed Principled BSDF values and create new GLB, BLEND, and FBX files.
target is 'all', an exact material name, or an exact object name with exactly one material. base_color accepts normalized RGB or RGBA. Scalar values are 0..1. The input is never overwritten; outputs and logs go into a unique job subfolder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| target | Yes | ||
| metallic | No | ||
| roughness | No | ||
| base_color | No | ||
| input_path | Yes | ||
| output_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| command | No | ||
| success | Yes | ||
| summary | Yes | ||
| log_path | No | ||
| artifacts | No | ||
| exit_code | No | ||
| operation | Yes | ||
| log_excerpt | No | ||
| operation_id | Yes | ||
| operation_path | No |