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

    • GeometryNodeTree Geometry Node Editor – Advanced geometry editing and tools creation using nodes.

    • CompositorNodeTree Compositor – Create effects and post-process renders, images, and the 3D Viewport.

    • ShaderNodeTree Shader Editor – Edit materials, lights, and world shading using nodes.

    • TextureNodeTree Texture Node Editor – Edit textures using nodes.

    • BGELogicTree Logic Node Editor.

    • BGEBrickTree Logic Brick Node View.

Returns:

New node tree data-block

Return type:

NodeTree

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:

bpy.types.Struct

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

Inherited Properties

Inherited Functions

References