Go to: Synopsis. Return value. Flags. MEL examples.
autoPlace [-useMouse]
autoPlace is undoable, NOT queryable, and NOT
editable.
This command takes a point in the centre of the current modeling
pane and projects it onto the live surface. This produces a point
in 3 space which is returned. If the um/useMouse flag is set
the current mouse position is used rather than the centre of the
modeling pane.
useMouse
Long name (short name) |
Argument types |
Properties |
-useMouse(-um) |
|
 |
|
Use the current mouse position rather than the centre of the
active view. |
|
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. |
// Move the scene around a bit so the grid is no longer
// centered in the view.
//
track -right 10; track -down 10;
// Create a sphere.
//
string $sphere[] = `sphere`;
// Reposition the sphere so that it is in the center of the
// view.
//
float $position[] = `autoPlace`;
move -relative $position[0] $position[1] $position[2] $sphere[0];