Empty layer in rhino with compas.Scene

Hi,

I have a basic question. I want to create an empty layer without any SceneObject using compas Scene in rhino and I’m unable to give a None type object.

is there a better way to do this than create a dummy object such as a point and deleting it?

context: I’m creating a component that will create all the layers and sublayers with colors, rendering materials and line weights I need for my rhino file. Do you recommend to just do this in rhino script instead?

from compas.scene import Scene
from compas.colors import Color
scene = Scene()

scene.add(None, name="design studies", layer="sbp::Design")
scene.draw()

error message

ValueError: Cannot create a scene object for None. Please ensure you pass a instance of a supported class.

thanks in advance!

hi keerthana,

have a look at compas_rhino.layers.create_layers_from_paths or similar, but note that these functions are just wrappers around basic rhinoscriptsyntax

best,
tom