Go to: Synopsis. Return value. Flags. MEL examples.
grid [-default] [-displayAxes boolean] [-displayAxesBold boolean] [-displayDivisionLines boolean] [-displayGridLines boolean] [-displayOrthographicLabels boolean] [-displayPerspectiveLabels boolean] [-divisions uint] [-orthographicLabelPosition string] [-perspectiveLabelPosition string] [-reset] [-size linear] [-spacing linear] [-style uint] [-toggle boolean]
grid is undoable, queryable, and NOT editable.
This command changes the size and spacing of lines on the ground plane displayed in the perspective and orthographic views. This command lets you reset the ground plane, change its size and grid line spacing, grid subdivisions and display options.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-default(-df)
|
|
|||
|
||||
-displayAxes(-da)
|
boolean
|
|||
|
||||
-displayAxesBold(-dab)
|
boolean
|
|||
|
||||
-displayDivisionLines(-ddl)
|
boolean
|
|||
|
||||
-displayGridLines(-dgl)
|
boolean
|
|||
|
||||
-displayOrthographicLabels(-dol)
|
boolean
|
|||
|
||||
-displayPerspectiveLabels(-dpl)
|
boolean
|
|||
|
||||
-divisions(-d)
|
uint
|
|||
|
||||
-orthographicLabelPosition(-olp)
|
string
|
|||
|
||||
-perspectiveLabelPosition(-plp)
|
string
|
|||
|
||||
-reset(-r)
|
|
|||
|
||||
-size(-s)
|
linear
|
|||
|
||||
-spacing(-sp)
|
linear
|
|||
|
||||
-style(-st)
|
uint
|
|||
|
||||
-toggle(-tgl)
|
boolean
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
//To toggle the grid display of the grid (in all views): grid -toggle (! `grid -q -toggle`) // To reset the grid to default values: grid -reset; // To change the grid spacing and subdivisions: grid -spacing 10 -d 10; // To set the defaults for inches grid -default -spacing 1in -size 1ft -divisions 4; // To change the size of the grid to 20x20, extending 10 units // in each direction: grid -spacing 10; // To query the current size of the grid: // returns a size in the current linear unit. grid -query -size; // A typical grid would be a grid size of 20x20, with // major grid lines every 10 units, with 10 divisions between // major grid lines. This be done with the following command. grid -size 10cm -sp 10.0cm -d 10 ; // Turn on numeric grid labels. // grid -displayPerspectiveLabels true; // Display grid labels along the axes. // grid -perspectiveLabelPosition "axis";