Show messages: All
1-10
11-12
From: Michael Gibson
Hi Samba, and that doesn't work to put in those comma decimal separator values in the dialog?
Here's another version that should make period decimal separators:
script: function str(pt) { return moi.ui.formatCoordinate(pt.x,2).replace(',', '.') + ' ' + moi.ui.formatCoordinate(pt.y,2).replace(',', '.') + ' ' + moi.ui.formatCoordinate(pt.z,2).replace(',', '.'); } var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); moi.copyTextToClipboard( 'Camera=' + str(v.cameraPt) + '\r\nTarget=' + str(v.targetPt) );
- Michael
From: Samba Oleg (SAMBA_OLEG)
Hi Michael,
it's a bit funny. The extended view angle dialog shows the camera and target position with commas on my system, but it only accepts the coordinates with a period decimal separator.
So, the last script solved the problem for me.
Thank you very much for spending so much time.
Samba
Show messages: All
1-10
11-12