API Reference (Blender.Utils)

collection_utils

collection_utils

functions to deal with bpy.types.Collection

collection_utils.ensure_collection(…)

returns collection of name

collection_utils.clear_collection(…)

recursively deletes all objects in collection

collection_utils.obj_unlink_all_collections(…)

unlinks object from all of its current collections

geo_nodes_utils

geo_nodes_utils

utilities to manipulate blenders geometry nodes

geo_nodes_utils.add_todo_node(…)

adds a frame denoting a TODO to the node tree

geo_nodes_utils.copy_geonodes(…)

sets the geo nodes modifier of targ to the same as src

geo_nodes_utils.clear_node_group(…)

clears the node group of group_name

geo_nodes_utils.create_node_group(…)

returns existing node group if dev, otherwise always creates new one

geo_nodes_utils.delete_geonode_groups(…)

deletes all geometry node node groups with name group_name

geo_nodes_utils.exists_node_group(…)

returns flag whether node group of group_name already exists

geo_nodes_utils.get_node_by_label(…)

returns first node in node_tree that matches label

geo_nodes_utils.set_node_curve(…)

overrides node curve (i.e. RGB Curves node) with new curve.

mesh_utils.add_spline2data(…)

adds a new (bezier) spline with vertices at coords to data

mesh_utils.apply_rotation(…)

applies rotation to obj

mesh_utils.get_bbox(…)

returns bounding box of obj

random.random_points_bbox(…)

generates n random points inside the bounding box of obj

random.random_points_raycast(…)

BROKEN; generates a random points inside obj

mesh_utils

mesh_utils

functions to manipulate and read from blender meshes/objects

mesh_utils.add_spline2data(…)

adds a new (bezier) spline with vertices at coords to data

mesh_utils.apply_rotation(…)

applies rotation to obj

mesh_utils.get_bbox(…)

returns bounding box of obj

random.random_points_bbox(…)

generates n random points inside the bounding box of obj

random.random_points_raycast(…)

BROKEN; generates a random points inside obj

random

random

functions for random generation

random.random_points_bbox(…)

generates n random points inside the bounding box of obj

random.random_points_raycast(…)

BROKEN; generates a random points inside obj