utilities

This package contains low-level functions for working and interacting with Blender.

collections

create_collection(name[, parent])

Create a collection with the given name.

create_collections(names)

Create multiple collections at once.

create_collections_from_path(path[, separator])

Create nested collections from a collection path string.

clear_collection(name)

Clear the objects from a collection.

clear_collections(collections)

Clear the objects from multiple collections.

data

delete_unused_data()

Delete all collections, mesh and curve objects, meshes, curves, materials.

drawing

draw_points(points[, collection])

Draw point objects.

draw_pointcloud(points[, collection])

Draw point objects as a single cloud.

draw_lines(lines[, collection, centroid])

Draw line objects.

draw_cylinders(cylinders[, collection, uv])

Draw cylinder objects as mesh primitives.

draw_spheres(spheres[, collection, uv])

Draw sphere objects as mesh primitives.

draw_cubes(cubes[, collection])

Draw cube objects as mesh primitives.

draw_mesh(vertices, faces[, name, color, ...])

Draw a mesh object.

draw_faces(faces[, collection])

Draw polygonal faces.

draw_texts(texts[, collection, color])

Draw text objects.

objects

delete_object(obj[, purge_data])

Delete a scene object.

delete_objects(objects[, purge_data])

Delete multiple scene objects.

delete_object_by_name(name)

Delete the scene object corresponding to the given name.

delete_objects_by_names(names)

Delete the scene objects corresponding to the list of names.

get_object_by_name(name)

Get the object with the given name.

get_objects_by_names(names)

Get the objects corresponding to the given names.