I’m developing a plugin that creates layout automatically. I added a counter to name them.
##########################
import scriptcontext as sc
import rhinoscriptsyntax as rs
title = rs.CurrentView()
layoutC = len(sc.doc.Views.GetPageViews())
rs.AddLayout(str(layoutC + 1), [0.00001, 0.00001])
rs.Command("_ToggleFloatingViewport _Enter", echo=False)
##########################
I want the same result as the first run to occur.
But from the second run, a strange result is obtained.