I would like to change the size of the current Viewport (by Python script) and it should be possible to do this by changing RhinoViewport.Size Property - according to http://4.rhino3d.com/5/rhinocommon/ it should be possible to Get and also to Set. But the Set option doesn’t work for me.
activeViewport = doc.Views.ActiveView.ActiveViewport viewport_info = Rhino.DocObjects.ViewportInfo(activeViewport) activeViewport.Camera35mmLensLength = 60 activeViewport.Size.Width = 768 activeViewport.Size.Height = 576
The Camera35mmLensLength method works, but the two following don’t.
Am I doing something wrong or is this a bug?