ScriptSpot home

Save & Restore Views

Downloads

3ds Max compatibility
Unknown
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
0.2
Author’s update date
Legacy votes
7
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

DeadClown

Martin Geupel

More by this author

Description

A simple script that is pretty similar to max's own "Save active perspective view" and "Restore active perspective view" functionality just that there are 5 slots with preview images. Un-comment the first 2 lines to install it as a macroscript. Click the little lock symbol to save a view, click the image button to restore it. 

Comments (18)
GK

Thanks

Thank you for this script. Nice one.

rachka

doesn't remember the views between sessions and the exact zoom

Awesome script but it does not remember the saved views after closing max and reopening the scene and it does not remember the exact saved zooming extents but only returns the saved view with the current zooming.

dussla

thank you good tool , can you modfiy some

thank you good tool
i would like to ask some
if i close script , next time all reset
can you save that and load preset auto next time ?

3dwannab

Compact Version and Ortho

This works with Ortho views too. I think it worked with this anyway. If not download my EDIT1 in this thread or Martins Original. It's working here with top views etc on Max 2016. Maybe your Max version is incompatible. I can't test below 2016.

New EDIT:
-- Toolbar Size.
-- Drag the little blank grey bit on the right to move the UI. It saves position when you reopen.
-- RMB to save View
-- LMB to activate View

Also to change the size of the ICONS it can be done to suit. Just modify the width and height value of this line and the script will do the rest.

rollout perspStore "View Store" width:205 height:35
Attachments
Reply to 3dwannab
robin

saved Views are deleted once 3dsmax is closed

Hi,

thanks for your modificationes on this script. One thing i`m still missing is a way of
having the perspectives being saved after a restart of max. ATM all views are deleteed once i close and restart max. Is there a way to have the views and the thumbnails being stored till manual deleted ?

Thanks for your help.

Robin

steve

top view

Nice script. Thank you! Is it possible for me to change the script to use top view instead of perspective view? The script will save active top views (at least create a thumbnail of them) but not restore them.

Thanks again!

Barry

3dwannab Revamp

Thanks 3dwannab (and Deadclown)... I have adopted your revamp of this script cos you have made it smaller. I find this script crucial for final camera position and quickly moving from inside to outside of a building to make alterations since moving around gets sluggish with big models. It should be re-named: Teleport Tool :)

But... could it be smaller?

I would prefer it to be toolbar size so it can be docked easily.
For me the size of the picture is not important.
Really fed up of floating toolbars.

Thanks

Martin Geupel

@3dwannab: Yes, that's a good idea. I will implement it when I time for it. I'm not using the script myself so I haven't even noticed ;)

@Ariel NM: It's possible that I'm using a maxscript function that does not exist in max 2011. I don't have 2011 to test it here, sorry.

Reply to Martin Geupel
3dwannab

Thanks

Just that orbiting in max bugs out when you're in tight spaces so this was the perfect solution. Thanks once again.

Reply to Martin Geupel
3dwannab

Changed the code

Hope you don't mind deadclown but I've found time to get the script like I descrided. Simple enough really but only works for max 2015 or more because it uses: NitrousGraphicsManager.GetActiveViewportSetting()


I modified and hidden all but two of the views (Felt 5 was too much for me :) ) in this script and changed the name to View Store (I hope you don't mind :P). Fixed saving the pos when dialog is moved and I've added a reset viewports button also to with the following settings:

		actionMan.executeAction 0 "40043" -- Selection: Select None
		viewport.ResetAllViews() --resets to Max Standard
		actionMan.executeAction 0 "311" --frames all viewports
		viewport.zoom .6 --fix to make perspective view appear closer
		completeredraw() --redraw the views
		viewport.setGridVisibility #all false --turns off all grids
		actionMan.executeAction 0 "40829" --show statistics

For anyone wanted basic shading saves in 2015 max or less you can look for the code and change:

		fn saveTM =(
			try(
				vpedgedfaces = viewport.GetShowEdgeFaces()
				VisualStyleMode = (impl = NitrousGraphicsManager.GetActiveViewportSetting() impl.VisualStyleMode) -- 2015 max version
				--vprenderlevel = viewport.GetRenderLevel() -- 2015 less max version
				vpType = viewport.getType()
				tmMatrix = getViewTM()			
			)catch()
		),
		fn getTM =(
			try(
				viewport.SetShowEdgeFaces vpedgedfaces
				impl = NitrousGraphicsManager.GetActiveViewportSetting() impl.VisualStyleMode = VisualStyleMode -- 2015 max version
				--viewport.SetRenderLevel vprenderlevel -- 2015 less max version
				viewport.setType vpType
				viewport.setTM tmMatrix
			)catch()
		),

And replace with:

		fn saveTM =(
			try(
				vpedgedfaces = viewport.GetShowEdgeFaces()
				--VisualStyleMode = (impl = NitrousGraphicsManager.GetActiveViewportSetting() impl.VisualStyleMode) -- 2015 max version
				vprenderlevel = viewport.GetRenderLevel() -- 2015 less max version
				vpType = viewport.getType()
				tmMatrix = getViewTM()			
			)catch()
		),
		fn getTM =(
			try(
				viewport.SetShowEdgeFaces vpedgedfaces
				--impl = NitrousGraphicsManager.GetActiveViewportSetting() impl.VisualStyleMode = VisualStyleMode -- 2015 max version
				viewport.SetRenderLevel vprenderlevel -- 2015 less max version
				viewport.setType vpType
				viewport.setTM tmMatrix
			)catch()
		),


Attachments
Ariel Nunez Morera

Only gray squares

Hi DeadClown! Your script works fine in versions 2013 to 2015, but in 2011 it doesn’t show the thumbnails –only the original gray squares. Who is wrong, me or Autodesk? ;)

3dwannab

Very useful.

Put it in my startup scripts folder. Thank you.

I think it would it be useful to save the type of shaded mode. So, lets say, if I'm in a view in wireframe mode I click the thumbnail and it brings me to the view with whatever mode was enabled. Would that e something you could implement?

kj

wow great script - also I'm using octane 2.0 on max 2015, works fine at the first few test, I think I'm gonna use this one :)

Dom

After some tests, I can say it works, but if I move the point of view in octane viewport, the script no longer call back the saved perspective.
If you want, you can try octane, there is a demo version, it's similar to corona, but only GPU renderer, and its viewport is a kind of activeshade, like corona activeshade viewport.
I hope you can update it, it's a good script anyway, I can use it, even if it is not "octane friendly", thanks you for this release.

Dom

Not working with octane

I like this script, very usefull, but don't work very well with Octane render.
When I open the Octane viewport, I can't recall the saved perpective views, can you insert a sort of "force recall" button, or something similar ?

Reply to Dom
Martin Geupel

I'm not using octane, so I've no idea what an octane viewport is but it only works with max viewports.