mmSolver.tools.reparent#

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

Tool#

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

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

Re-parent the selection under the last selected node.

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

Un-parent the selected nodes into world space.

Library#

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

mmSolver.tools.reparent.lib.reparent(children, parent, sparse=True, delete_static_anim_curves=False)#

Reparent the children under the given parent.

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

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

  • sparse (bool) – Keyframe animation on the children each frame (dense) or sparse (only at keyframes).

  • 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, ..]

Key-Time Utilities#

Keyframe time querying utilities.

class mmSolver.tools.reparent.keytimeutils.KeyframeTimes#
add_node_attrs(node, attrs, start_frame, end_frame, parents=None)#

Add node attributes into the keyframe times.

get_nodes()#
get_frame_range_for_node(node)#
sum_frame_range_for_nodes(nodes)#
get_times(node, sparse)#

The logic to query time for a node, in sparse or dense mode.