Viewport Grids

The following methods control the display and spacing of grid lines in the viewports.

getGridSpacing()

Returns the spacing between grid lines in units.

getGridMajorLines()

Returns the number of grid lines between major grid lines.

The following 3ds max system global variable is associated with the Viewport grids:

activeGrid

Contains the currently active grid. If the home grid is active, returns the value undefined. You can assign a grid node object to this variable to make it the currently active grid.

You can also return to the home grid by setting activegrid = undefined.