Do you have a top view open or is it named something else? setactiveviewport uses the title and not necessarily the type of view. You can append the macro by adding a _4view to the beginning so that it will always run, but keep in mind that it would always reset your viewports to the 4 default.
!_4view _SetActiveViewport Top _CPlane _World Top _pause _SetActiveViewport front _CPlane _World Front _pause _SetActiveViewport Perspective _CPlane _World Top _pause _SetActiveViewport Right _CPlane _World Right _pause _SetMaximizedViewport Perspective
Hi Pascal. Could the red-text list of views in your script be replaced with a dynamic list of both the default named views and all other user-defined named views in the file?
I’m thinking along the lines of having user named CPlanes with the same name as the views (yeah, I know that requires a lot of user discipline but it’s what I do already anyway) then using the view name to ‘master’ the active CPlane in that viewport. If there’s no CPlane name available I guess the command would just bale out(?)
Many thanks Pascal. I’ll give the new script a try.
I wasn’t aware of that setting in Options and I see it’s present in both V5 and V7. What does Rhino feed off to inform that “Named views set CPlane” option? Does it remember the active CPlane when a named view is first saved? What then happens if the CPlane is changed with that named view active?
This all goes back to the other thread I posted in about knowing which CPlane is currently active in a viewport. Rhino doesn’t keep the user informed about the active CPlane unless they go digging in cascading menus.