material.PresetMaterial
material.PresetMaterial()Base class for the pre-built MolecularNodes materials.
Instantiating a preset creates a new, independent material datablock built with nodebpy, so tweaking one instance never affects the materials of other styles. The nodes used to build the material are kept as attributes on the instance and the key parameters are exposed as properties that read and write the underlying node inputs directly.
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.