Getting camera view and restore it

 From:  Michael Gibson
9356.9 In reply to 9356.8 
Hi Samba, do the different fields in the dialog not use commas for the decimal separator when you first open it? It is supposed to if your operating system language settings have that set.

Does this work where the numbers are separated by spaces? :

script: function str(pt) { return moi.ui.formatCoordinate(pt.x,2) + ' ' + moi.ui.formatCoordinate(pt.y,2) + ' ' + moi.ui.formatCoordinate(pt.z,2); } var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); moi.copyTextToClipboard( 'Camera=' + str(v.cameraPt) + '\r\nTarget=' + str(v.targetPt) );

Let me know if that still isn't quite right.

- Michael