FrameObject

class compas_blender.scene.FrameObject[source]

Bases: BlenderSceneObject, GeometryObject

Scene object for drawing frames in Blender.

Parameters:
frame: :class:`compas.geometry.Frame`

A COMPAS frame.

scalefloat, optional

Scale of the frame axes.

**kwargsdict, optional

Additional keyword arguments. For more info, see compas_blender.scene.BlenderSceneObject and compas.scene.GeometryObject.

Attributes:
color_origincompas.colors.Color

Color for the point at the frame origin. Default is Color.black().

color_xaxiscompas.colors.Color

Default is Color.red().

color_yaxiscompas.colors.Color

Default is Color.green().

color_zaxiscompas.colors.Color

Default is Color.blue().

Methods

draw

Draw the frame.

Inherited Methods

add

Add a child item to the scene object.

add_object_to_collection

Add an object to a collection.

clear

The main clearing method.

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.