Notifications
Clear all

[Closed] viewports

does anyone know if you can set the viewport size via maxscript. I know you can getViewPortsize however i would also like to be able to set it as well

regards

3 Replies

Afaik, there’s no way of setting the size of a viewport.

Martijn

didnt think so, thanks for the help!

Not entirely true.

In a single view you can reset the veiwport size…

gw.setPos 0 0 WindowSizeX WindowSizeY

I use this for automated previews. It leaves the display in an odd configuration, so you are going to want to get and store the original state.

gw.getWinSizeX()
gw.getWinSizeY()

Hope this helps

Keith Morrison
www.focus360.com