BlenderArtist

class compas_blender.artists.BlenderArtist(item, **kwargs)[source]

Bases: Artist

Base class for all Blender artists.

Parameters
  • collection (str | bpy.types.Collection, optional) – The Blender scene collection the object(s) created by the artist belong to.

  • **kwargs (dict, optional) – Additional keyword arguments. See Artist for more info.

Attributes

collection (bpy.types.Collection) – The collection containing the object(s) created by this artist.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear all objects from the view.

draw

The main drawing method.

draw_collection

Drawing method for drawing an entire collection of objects.

redraw

Redraw the view.

register

Register an artist type to a data type.