Notifications
Clear all

[Closed] resize viewport

i want to realise a preview from snapshot viewport
but i want an 350*350 bitmap, and i don’t found how to rezise my active viewport
( the best it’s to create a windows with viewport inside, but i think( by help ) it’s impossible in maxscript )
so how i can rezise my viewport ? viewport.setRegionRect 1 (Box2 30 30 500 500)

don’t work 🙁

or, in maxscript, can i transform wievport like original preview ( all grey with little viewport center )

thx for your help

Kermit

2 Replies

well u doing a test render right? why dont you change ur output size instead then render?

–not sure if this what u want?
fn nn_renderFile =
(
wVal = 350
hVal = 350
bgColor = color 147 129 79

backgroundColor = bgColor
render outputSize: [wVal, hVal]
)
nn_renderFile()

hi,

i want to rezise for snapshot viewport, isn’t for rendering

and i can’t find solution

Kermit