Hi Pior,
re:
> Is the custom Cplane feature (as run like in this script) always tied to all views, or can it be related to
> the perspective view only, leaving the other (orthos) unaffected ?
It can be set just for the 3D view without changing the ortho views. Try this:
script:/* Orient cplane to 3D view direction, origin on selected objects */ 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, false /*ApplyToAllViews*/ );
- Michael
|