My shapes are organized in layers, or, groups. Right-click allows you to remove the layer and its shapes, which is what I want.
How do you do that in python?
or, looking at my code:
for i in camgroups:
newchunk = chunk.copy()
newchunk.label = chunk.label+"_group_"+str(i)
# delete the other cameragroups
newchunk.remove(newchunk.camera_groups[i+1:])
newchunk.remove(newchunk.camera_groups[:i])
# delete the other shapegroups (this is the part that does not work)
newchunk.remove(newchunk.shapes.groups[i+1:])
newchunk.remove(newchunk.shapes.groups[:i])
And, please: Why are they called layers in the gui and in Alexeys scripts but groups in the python API?
Many thanks!
Tom