Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

[Python] Adjust size of existing, active floating viewport

$
0
0

@Dow wrote:

Hi,

I have been unable to find the correct python call to adjust the size of an existing, active floating viewport. Essentially, I need the equivalent of:
rhinoscriptsyntax.Command ("-viewportProperties _Size 400 200 Enter" )
… but without the Command() call

Here’s what I have, which appears to change the view buffer size, but not the floating window size:

activeViewport = doc.Views.ActiveView.ActiveViewport
dims = System.Drawing.Size( 400, 200 )
activeViewport.Size = dims

Any help would be greatly appreciated.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles