I am currently trying to write a few macros to make certain workflows easier.
In this regard i would like to select each of my 4 viewports one by one to execute viewport specific commands in them.
Is it possible to have something like “set next viewport” ? this way I could cycle through the viepords regardless of their name…
Option Explicit
Call Main()
Sub Main()
Dim views,viewi
'list of all views, maybe also check NamedViews
views = Rhino.ViewNames()
'loop trough views
For Each viewi In views
'do something with each viewi
'for example set display mode to shaded:
Call Rhino.ViewDisplayMode(viewi,1)
Next
End Sub