After running this script
import rhinoscriptsyntax as rs
from scriptcontext import doc
def main():
layer = doc.Layers[0]
layer.Name = "One"
layer.CommitChanges()
layer.Name = "Two"
layer.CommitChanges()
if __name__ == "__main__":
main()
if undoing it, the layer name will be “One” rather then the initial name. Am I doing something wrong?
Thanks a lot
Alberto