material.PresetMaterial
material.PresetMaterial()Base class for the pre-built MolecularNodes materials.
Instantiating a preset creates a new, independent material datablock built from the preset’s dumped recipe module (nodes/materials/) — the same recipe that builds the asset library — so tweaking one instance never affects the materials of other styles. The key parameter nodes are kept as attributes on the instance and exposed as properties that read and write the underlying node inputs directly; parameters left as None keep the recipe’s values.
Attributes
| Name | Description |
|---|---|
| material | The underlying Blender material datablock. |
| tree | The nodebpy tree builder for the material’s node tree. |
Methods
| Name | Description |
|---|---|
| node | Add a Material node to the active GeometryNodeTree and set it to this material. |
node
material.PresetMaterial.node()Add a Material node to the active GeometryNodeTree and set it to this material.