Hello Guys,
how to use if statement to delete other layers except for the “Default” one.
Hello Guys,
how to use if statement to delete other layers except for the “Default” one.
Hi,
In python you would do it like so:
import rhinoscriptsyntax as rs
layerNames = rs.LayerNames()
for layer in layerNames:
if layer != "Default":
rs.PurgeLayer(layer)
thanx mate… it’s gonna help