This is a proposal for a set of 6 nodes for working with materials.
Nodes:
- Material Info : Gives the name of the material.
- Material by Index : Returns the material of the object under the given number
- Material Count : Data field about the number of materials in the component
- Find Material : Searches for material with the same name in the Blender data
- Copy Materials : Transfers all materials from sources to geometry
- Clear Materials : Removes all materials that are not used anywhere
It looks:
{F13146765}
| {F13146782} Material Info | {F13146804} Material Count | {F13146808} Material By Index |
| {F13146840} Clear Materials | {F13146822} Find Material | {F13146828} Copy Materials |
Unresolved Issues:
- When copying material, there is no update of the viewport
- Also, assigning a material doesn't seem to give it garbage collection protection.
- Error occurs when cleaning
```
ERROR (bke.lib_id): F:\Blender_build\first\blender\source\blender\blenkernel\intern\lib_id.c:322 id_us_min: ID user decrement error: MAMaterial.001 (from '[Main ]'): 0 <= 0
```
The solution of these problems is expected