Go to: Synopsis. Return value. Flags. MEL examples.


reorder [-back] [-front] [-relative int] [objects...]

reorder is undoable, NOT queryable, and NOT editable.

This command reorders (moves) objects relative to their siblings.

For relative moves, both positive and negative numbers may be specified. Positive numbers move the object forward and negative numbers move the object backward amoung its siblings. When an object is at the end (beginning) of the list of siblings, a relative move of 1 (-1) will put the object at the beginning (end) of the list of siblings. That is, relative moves will wrap if necessary.

If a shape is specified and it is the only child then its parent will be reordered.

Return value



back, front, relative
Long name (short name) Argument types Properties
-front(-f) create
Move object(s) to front of sibling list.
-back(-b) create
Move object(s) to back of sibling list.
-relative(-r) int create
Move object(s) relative to other siblings.

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.

MEL examples

// create a hierarchy
sphere -n sphere1;
sphere -n sphere2;
sphere -n sphere3;
sphere -n sphere4;
group -n group1 sphere1 sphere2 sphere3 sphere4;

// The hierarchy group1 contains sphere1, sphere2, sphere3 and sphere4.
// The command below moves sphere2 before sphere1.
reorder -r -1 sphere2;

// make sphere1 the first sibling
reorder -front sphere1;

// move sphere3 forward 2 siblings. Moving it forward one
// sibling would put it at the end. Moving it forward again
// puts it at the beginning.
reorder -r 2 sphere3;