There's a new method moi.ui.getActivePointPicker() which will return to you the pointpicker which is currently waiting for a point, or null if none is currently waiting.
Then there is a new setDistanceConstraint() and setAngleConstraint() which is available on a point picker.
So this for instance will set it up so that pushing D will set a distance constraint of 10 units. So to create a polyline with a lot of 10 unit segments, set this up and then push D after picking each point.
[Shortcut Keys]
D=script:var pointpicker = moi.ui.getActivePointPicker(); if ( pointpicker != null ) pointpicker.setDistanceConstraint(10.0);
- Michael
|