RubberBanding in pickObject() Function

Topic: version 4 MAXScript Language Improvements/Language Improvements

The pickObject() function in MAXScript now supports 2 new optional keyword arguments for controlling the display of a rubber-banding line in the viewport during pick operations. The new keywords are:

rubberBand:<point3>

rubberBandColor:<color>

If rubberBand: is supplied on the pickObject() call, it enables rubberbanding, with the given <point3> as world-space coordinates for the start point of the rubber band. You can use the rubberBandColor: argument to override the default line color of gray (color 128 128 128).

Example:

obj2 = pickObject rubberBand:obj1.pos rubberBandColor:yellow

See also