Hi Barry, try setting these scripts up on shortcut keys for the X, Y, Z keys:
script: /* Snap to x direction */ var pp = moi.ui.getActivePointPicker(); if ( pp && pp.basePt ) { pp.restrictToLinePtDir( pp.basePt, moi.vectorMath.createPoint(1,0,0), true ); }
script: /* Snap to y direction */ var pp = moi.ui.getActivePointPicker(); if ( pp && pp.basePt ) { pp.restrictToLinePtDir( pp.basePt, moi.vectorMath.createPoint(0,1,0), true ); }
script: /* Snap to z direction */ var pp = moi.ui.getActivePointPicker(); if ( pp && pp.basePt ) { pp.restrictToLinePtDir( pp.basePt, moi.vectorMath.createPoint(0,0,1), true ); }
- Michael
|