Notifications
Clear all

[Closed] Saving and restoring viewport layout

I’m using 3dsmax 8 here and I want to do a script that changes the viewport layout, but saves the one used to be able to restore later.

My problem is that I can’t find a way to save efficiently the actual layout. For orthographic views like Top, Front, Left, etc. They always return pointing to the center of the grid. In fact, all views have their own peculiarities except for perspective that is the easiest one.

I’m curious to know if there is a solution because the amount of work I need to spent on this is ridiculous considering the overall simplicity of the script…

Regards,

Jr.

3 Replies

Hey Eugenio,

Yup – it’s got it’s foibles! I write this to do something similar a couple of years ago, also for max 8. See what you think, and feel free to copy code if you like.

http://www.keyframesandcode.com/code/development/maxscript/viewport-layout-manager/

Man, I don’t know how to thank you! What you have done here is a lot more complicated but I will try to see if I can figure out how you managed to save the layout. Neither way we are certainly going to use this script in our production here, it’s just so useful.

Thank you very much!

Regards,

Jr.

Yeah – it’s pretty useful isn’t it. Glad you like it!

Most of the command are accessible from the viewport struct. Just type in viewport and hit return in the listener to see the commands available