snnib.blender.utils.geo_nodes_utils.get_node_by_label

snnib.blender.utils.geo_nodes_utils.get_node_by_label(node_tree: bpy.types.GeometryNodeTree, label: str) bpy.types.Node[source]

returns first node in node_tree that matches label

Parameters
  • node_tree
    • bpy.types.GeometryNodeTree

    • geometry nodes node tree to extract node from

  • label
    • str

    • label of the node to search for

Raises

Returns
  • node
    • bpy.types.Node

    • extracted node

    • None if no matching node was found

Dependencies
  • bpy

  • logging

  • typing