screen space move

 From:  Michael Gibson
10112.9 In reply to 10112.8 
Hi Pior, try this one for targeting it on selected objects:

script:/* Orient cplane to 3D view direction, origin on selected objecs */ var frame = moi.ui.mainWindow.viewpanel.getViewport('3D').targetFrame; frame.origin = moi.view.getCPlane().origin; var objs = moi.geometryDatabase.getSelectedObjects(); if ( objs.length > 0 ) { frame.origin = objs.getHighAccuracyBoundingBox().center; } moi.view.setCPlane( frame );


> Btw, is there an api/command reference page out there for all the tools ? Like for instance how to add
> options in scripts/shortcuts for things like "apply to all views", and so on.

There is some at http://moi3d.com/wiki/Scripting but it's not complete.

- Michael