PDA

View Full Version : Saving and restoring viewport layout


Eugenio
04-07-2008, 08:43 PM
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.

davestewart
04-08-2008, 10:14 AM
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/

Eugenio
04-08-2008, 12:43 PM
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.

davestewart
04-08-2008, 02:20 PM
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 :)

CGTalk Moderation
04-08-2008, 02:20 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.