BlendDataNodeTrees(bpy_prop_collection)
base classes — bpy_prop, bpy_prop_collection
- class bpy.types.BlendDataNodeTrees(bpy_prop_collection)
Collection of node trees
- new(name, type)
Add a new node tree to the main database
- Parameters:
name (str) – New name for the data-block (never None)
type (Literal['GeometryNodeTree', 'CompositorNodeTree', 'ShaderNodeTree', 'TextureNodeTree', 'BGELogicTree', 'BGEBrickTree']) –
Type, The type of node_group to add
GeometryNodeTreeGeometry Node Editor – Advanced geometry editing and tools creation using nodes.CompositorNodeTreeCompositor – Create effects and post-process renders, images, and the 3D Viewport.ShaderNodeTreeShader Editor – Edit materials, lights, and world shading using nodes.TextureNodeTreeTexture Node Editor – Edit textures using nodes.BGELogicTreeLogic Node Editor.BGEBrickTreeLogic Brick Node View.
- Returns:
New node tree data-block
- Return type:
- remove(tree, *, do_unlink=True, do_id_user=True, do_ui_user=True)
Remove a node tree from the current blendfile
- Parameters:
tree (
NodeTree) – Node tree to remove (never None)do_unlink (bool) – Unlink all usages of this node tree before deleting it (optional)
do_id_user (bool) – Decrement user counter of all data-blocks used by this node tree (optional)
do_ui_user (bool) – Make sure interface does not reference this node tree (optional)
- tag(value)
tag
- Parameters:
value (bool) – Value
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type