I m trying to create a python script which will turn all layer names to uppercase
When sublayers exist i get the following error
Message: 0000_REFERENCE::0001_frameline does not exist in LayerTable
import rhinoscriptsyntax as rs
def LayerNameUppercase():
layers = rs.LayerNames()
if layers:
for layer in layers:
layer_name_upper = layer.upper()
rs.RenameLayer(layer, capital_layer_name)
if __name__ == "__main__":
LayerNameUppercase()
Sorry, it was a last minute correction to make it readable for the forum and i forgot to update.
So what you have posted gives me the error that i mentioned before