Storing and restoring a camera view

 From:  Frenchy Pilou (PILOU)
11302.5 In reply to 11302.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

EDITED: 20 Dec 2023 by PILOU