MoI discussion forum
MoI discussion forum

Full Version: Storing and restoring a camera view

From: Metin (METIN_SEVEN)
20 Dec 2023   [#1]
Hi Michael,

I'm wondering: is there an option or script to store and restore a camera view (perspective or isometric) ?

I often model for one specific view angle, like for an illustration, making it very useful to be able to press a hotkey to return to a specific view angle and perspective FOV to check how it looks from the relevant side.

Thanks in advance for possibly considering this, if it isn't already possible.
From: Frenchy Pilou (PILOU)
20 Dec 2023   [#2]
Maybe this (it's not a store but...

http://moi3d.com/forum/index.php?webtag=MOI&msg=8476.3

Alternatively, go to Menu Options / 3D View Settings - Pitch - Azimuth - Roll - View
From: Metin (METIN_SEVEN)
20 Dec 2023   [#3] In reply to [#2]
Thanks Pilou.

This workaround with manually copying and entering camera coordinates is too convoluted for me though. I'd need a simple hotkey or button to store a manually navigated custom camera view, then another hotkey or button to restore it.
From: Larry Fahnoe (FAHNOE)
20 Dec 2023   [#4] In reply to [#3]
Hi Metin,

Here are a couple of scripts that may be of help to you. PEER's NamedView in particular may be the better choice to get the hotkey behavior you are after.

PEER's NamedView: https://moi3d.com/forum/messages.php?webtag=MOI&msg=11036.1

Teddy Lindsey's ViewManager: https://moi3d.com/forum/messages.php?webtag=MOI&msg=10028.1

--Larry
From: Frenchy Pilou (PILOU)
20 Dec 2023   [#5] In reply to [#3]
Seems to me that is yet existing!
Michael or other will give you that!
before that make a shortcut to this

Camera&TargetPointToClipboard – it will copy the camera and target locations to the clipboard as a text string:

script:var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); moi.copyTextToClipboard( 'Camera=' + v.cameraPt.toString() + '\r\nTarget=' + v.targetPt.toString() );

Similarly you can set the .cameraPt value to something to place the camera at a certain x,y,z location:

script:var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); v.cameraPt = moi.vectorMath.createPoint(50.2, 30.5, 10.1);

Ps you have my little site for some other things but it's in French... :)
https://moiscript.weebly.com
From: Metin (METIN_SEVEN)
20 Dec 2023   [#6] In reply to [#4]
Thanks Larry and Pilou!

Love the always helpful MoI community. <3

Peer's version is exactly what I wished for, great!
From: Frenchy Pilou (PILOU)
20 Dec 2023   [#7] In reply to [#6]
Excellent a new one to translate in French...if possible! :)
From: Metin (METIN_SEVEN)
20 Dec 2023   [#8] In reply to [#7]
Love your MoI site, Pilou. I know it for many years now, and it recently helped me refresh my "meMOIry". ;) You're doing a great job maintaining it. So much info, tips, explanations, animated GIFs.
From: Frenchy Pilou (PILOU)
20 Dec 2023   [#9] In reply to [#8]
It's my reminder! :) So no style only efficacity (for me) ! :)