How to setup all the transform and zoom parameters of a viewport

I want to create a restore point active view for later reuse. I use the following:

x=viewport.getTM()
viewport.setTM x

And it works for perspective view, but in orthographic view, zooms don't changes.

Ive been testing the viewport.GetScreenScaleFactor(). It reacts to the zoom changes in orthographic view, but I can't set that. I also tested the FOV, but again, nothing happends when it is set in ortho.

What Im missing?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

no way...

the help is quite clear on that:

viewport.setTM
"setTM only operates on Perspective viewports"
 
viewport.SetFOV
"Works only with perspective and camera views"

my recent MAXScripts RSS (archive here)

rodimus111's picture

Yes. I thought. I had hoped

Yes. I thought.

I had hoped that there otherwise there is a way of doing the same thing.

Thanks anyway

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.