shader_create_tree
Ensure any material has a node tree; create if absent. Optionally clear existing nodes except output for a clean shader setup.
Instructions
Ensure material has node tree. Create if not exists. clear_existing removes non-output nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_name | Yes | ||
| clear_existing | No |