BlenderArtist

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

Bases: Artist

Base class for all Blender artists.

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

  • **kwargs (dict, optional) – Additional keyword arguments. See compas.artists.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.