pymel.core.general.reorderContainer

reorderContainer(*args, **kwargs)

This command reorders (moves) objects relative to their siblings in a container. 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. Only nodes within one container can be moved at a time. Note: The container command’s -nodeList flag will return a sorted list of contained nodes. To see the effects of reordering, use the -unsortedOrder flag in conjunction with the -nodeList flag.

Flags:
  • back : b (bool) [create,query,edit]

    Move object(s) to back of container contents list

  • front : f (bool) [create,query,edit]

    Move object(s) to front of container contents list

  • relative : r (int) [create,query,edit]

    Move object(s) relative to other container contents Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.reorderContainer

Previous topic

pymel.core.general.reorder

Next topic

pymel.core.general.resetTool

Core

Core Modules

Other Modules

This Page