This is probably a python/rhinoCommon beginners question, but I cant seem to solve it on my own.
I want to create a layout, add a detail view to the layout (top view, but preferably changeable to any other ‘standard view’). So far I have managed this by:
if RUN == True: rs.AddLayout(name, size) for layout in sc.doc.Views.GetPageViews(): sc.doc.Views.ActiveView = layout layout.AddDetailView(name + '1', corner1, corner2, r.Display.DefinedViewportProjection.Top)
I then want the detail view to center over a target point in the rhino document and zoom so it shows the objects in the detail in a certain scale. Should I first create a DefinedViewportProjection that is centered over the target, and then use this to add the detail, or should I rather move the camera after creating the detail? I can’t find a method to set the camera of a detail view or zoom. Please help!