Nodes(bpy_prop_collection)
base classes — bpy_prop, bpy_prop_collection
- class bpy.types.Nodes(bpy_prop_collection)
Collection of Nodes
- new(type)
Add a node to this node tree
- Parameters:
type (str) – Type, Type of node to add (Warning: should be same as node.bl_idname, not node.type!) (never None)
- Returns:
New node
- Return type:
- remove(node)
Remove a node from this node tree
- Parameters:
node (
Node) – The node to remove (never None)
- clear()
Remove all nodes from this node tree
- 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