mmSolver.tools.reparent2#

Re-parent transform node to a new parent, across time.

Tool#

Re-parent transform node to a new parent, across time.

mmSolver.tools.reparent2.tool.reparent_under_node()#

Re-parent the selection under the last selected node.

All settings are taken from the UI’s defaults. To change these, please use the UI (or ‘configmaya’ module)

mmSolver.tools.reparent2.tool.unparent_to_world()#

Un-parent the selected nodes into world space.

All settings are taken from the UI’s defaults. To change these, please use the UI (or ‘configmaya’ module)

mmSolver.tools.reparent2.tool.reparent(children, parent)#

Reparent ‘children’ nodes under ‘parent’ node.

If ‘parent’ is None, the children are unparented to world.

All settings are taken from the UI’s defaults. To change these, please use the UI (or ‘configmaya’ module)

mmSolver.tools.reparent2.tool.reparent_under_node_open_window()#
mmSolver.tools.reparent2.tool.unparent_to_world_open_window()#
mmSolver.tools.reparent2.tool.open_window()#

Library#

Re-parent transform node to a new parent, across time.

This script will re-parent objects, keeping the world space position the same except moving the objects in to a different hierarchy. This will work with animation data, not just a single frame, like the native Maya command “parent”.

mmSolver.tools.reparent2.lib.nodes_attrs_settable(node_list, attr_list)#

Returns a dict of the settable status for each attribute on each node.

Return type:

({str: str, ..}, int, int)

mmSolver.tools.reparent2.lib.reparent(children_nodes, parent_node, frame_range_mode=None, start_frame=None, end_frame=None, bake_mode=None, rotate_order_mode=None, delete_static_anim_curves=None)#

Reparent the children under the given parent.

Parameters:
  • children_nodes ([TransformNode, ..]) – List of child nodes to be modified.

  • parent_node (TransformNode or None) – The new parent node for children, or None means un-parent.

  • frame_range_mode (FRAME_RANGE_MODE_VALUES) – What frame range to use for baking.

  • start_frame (int or None) – First frame of custom frame range.

  • end_frame (int or None) – Last frame of custom frame range.

  • bake_mode (BAKE_MODE_VALUES) – How to bake the object? Where to place keyframes.

  • rotate_order_mode (ROTATE_ORDER_MODE_VALUES) –

  • delete_static_anim_curves (bool) – Delete any animCurves that all have the same values.

Returns:

List of ‘children’ TransformNodes modified, will not contain child nodes if the child is already parented under ‘parent’.

Return type:

[TransformNode, ..]