Camera Position
All  1  2-3

Previous
Next
 From:  Michael Gibson
5981.2 In reply to 5981.1 
Hi Mike, it is possible to get and set the camera x,y,z position by script.

Here's a script that will copy the camera and target points as text to the clipboard, you can then paste that into a text editor:

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

Here's one that will set the camera point to a specific value:

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

Also check out this previous thread for some related view saving/restoring stuff:
http://moi3d.com/forum/index.php?webtag=MOI&msg=2891.7

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Mike K4ICY (MAJIKMIKE)
5981.3 
This is great Michael!


I used the scripts at the link. Works like a charm.


Now if only Dino could write a permanent drop-down options dialog script to store named views... but let's not be too greedy. ;-)


Thanks!

Mike
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3