mgear.core.pickWalk

Custom Pick walk

mgear.core.pickWalk.cleanOrphaneControllerTags(tag)

Security check, delete tags without controlObject plug

Parameters:tag (controllers tag list) – The tags to check
Returns:The valid tags with controller object plugged
Return type:list
mgear.core.pickWalk.controllerWalkDown(node, add=False, multi=False)

Walk down in the hierachy using the controller tag

Parameters:
  • node (dagNode or list of dagNode) – Node with controller tag
  • add (bool, optional) – If true add to selection
mgear.core.pickWalk.controllerWalkLeft(node, add=False, multi=False)

Pick walks the next sibling to the left using controller tag

Parameters:
  • node (TYPE) – Description
  • add (bool, optional) – If true add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.controllerWalkRight(node, add=False, multi=False)

Pick walks the next sibling to the right using controller tag

Parameters:
  • node (TYPE) – Description
  • add (bool, optional) – If true add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.controllerWalkUp(node, add=False)

Walk up in the hierachy using the controller tag

Parameters:
  • node (dagNode or list of dagNode) – Node with controller tag
  • add (bool, optional) – If true add to selection
mgear.core.pickWalk.getMirror(node)

Get the mirrored node usin _L and _R replacement

Parameters:node (dagNode or list of dagNodes) – The dagNode to look for a mirror
Returns:The dagNode contrapart on the other side _L or _R
Return type:dagNode or list of dagNodes
mgear.core.pickWalk.getWalkTag(node)

Get Controller tag

Parameters:node (dagNode) – Controller object with tag
Returns:Controller tag
Return type:tag
mgear.core.pickWalk.get_all_tag_children(node)

Gets all child tag controls from the given tag node

Parameters:node (dagNode) – Controller object with tag
Returns:List of child controls (Maya transform nodes)
Return type:list
mgear.core.pickWalk.reorderControllerChildrenTags(tag)

Clean the order on the children connection.

This is important for the Left and right pick walk. Becasue is using the index of the connection.

Parameters:tag (controller tag) – The tag to clean the children order
mgear.core.pickWalk.transformWalkDown(node, add=False, multi=False)

Walks to the child transform dagNode on the hierarcy

Parameters:
  • node (dagNode or list of dagNode) – dagNode to walk
  • add (bool, optional) – if True, will add to the selection
  • multi (bool, optional) – if True will select all the childrens
mgear.core.pickWalk.transformWalkLeft(node, add=False, multi=False)

Pick walks to the left the next sibling transform on the hierarchy

Parameters:
  • node (dagNode or list of dagNode) – dagNode transform to navegate the hierarchy
  • add (bool, optional) – If true add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.transformWalkRight(node, add=False, multi=False)

Pick walks to the right the next sibling transform on the hierarchy

Parameters:
  • node (dagNode or list of dagNode) – dagNode transform to navegate the hierarchy
  • add (bool, optional) – If true add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.transformWalkUp(node, add=False)

Walks to the parent transform dagNode on the hierarcy

Parameters:
  • node (dagNode or list of dagNode) – dagNode to walk
  • add (bool, optional) – if True, will add to the selection
mgear.core.pickWalk.walkDown(node, add=False, multi=False)

Walk Down

Parameters:
  • node (dagNode or list of dagNode) – the starting object for the pickwalk
  • add (bool, optional) – If True add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.walkLeft(node, add=False, multi=False)

Walk left

Parameters:
  • node (dagNode or list of dagNode) – the starting object for the pickwalk
  • add (bool, optional) – If True add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.walkMirror(node, add=False)

Select the mirror dagNode

Parameters:
  • node (dagNode or list of dagNode) – The dagNode to look for a mirror
  • add (bool, optional) – If true add to selection
mgear.core.pickWalk.walkRight(node, add=False, multi=False)

Walk right

Parameters:
  • node (dagNode or list of dagNode) – the starting object for the pickwalk
  • add (bool, optional) – If True add to selection
  • multi (bool, optional) – If true, selects all the siblings
mgear.core.pickWalk.walkUp(node, add=False, multi=False)

Walk up

Parameters:
  • node (dagNode or list of dagNode) – the starting object for the pickwalk
  • add (bool, optional) – If True add to selection
  • multi (bool, optional) – If true, selects all the siblings