register

compas.scene.register(item_type, sceneobject_type, context=None)[source]

Register a scene object type to a data type.

Parameters:
item_typeData

The type of data item.

sceneobject_typeSceneObject

The type of the corresponding/compatible scene object.

contextLiteral[‘Viewer’, ‘Rhino’, ‘Grasshopper’, ‘Blender’], optional

The visualization context in which the pair should be registered.

Returns:
None