BlenderSceneObject

class compas_blender.scene.BlenderSceneObject[source]

Bases: SceneObject

Base class for all Blender scene objects.

Parameters:
collectionstr | bpy.types.Collection, optional

The Blender scene collection the object(s) created by the scene object belong to.

show_wirebool, optional

Display the wireframe of the object.

**kwargsdict, optional

Additional keyword arguments.

Attributes:
objectslist[bpy.types.Object]

The Blender objects created by the scene object.

collectionstr | bpy.types.Collection

The Blender scene collection the object(s) created by the scene object belong to.

show_wirebool

Display the wireframe of the object.

Methods

add_object_to_collection

Add an object to a collection.

clear_collection

Clear the objects in a collection.

create_collection

Create a collection with the given name.

create_object

Add an object to the Blender scene.

delete_collection

Delete a collection.

set_object_color

Set the color of a Blender object.

set_object_tranformation

Set the transformation of a Blender object.

update_object

Update an object in the Blender scene.

Inherited Methods

ToString

Converts the instance to a string.

add

Add a child item to the scene object.

clear

The main clearing method.

copy

Make an independent copy of the data object.

draw

The main drawing method.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

remove

Remove a child node from this node.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

traverse

Traverse the tree from this node.

validate_data

Validate the data against the object's data schema.