mmSolver.tools.deformmarker#

Deform Marker tool; offset a Marker animation with sparse keyframes.

Tool#

This tool creates anim layer override to create offset for markers

mmSolver.tools.deformmarker.tool.create_offset_layer()#

Creates anim layer for the selected markers.

Returns:

None

mmSolver.tools.deformmarker.tool.bake_offset()#

Bakes offset for the selected markers.

Returns:

None

mmSolver.tools.deformmarker.tool.remove_layer_override()#

Removed markers layer override.

Returns:

None

Library#

This file contains all the lib function to help deformmarker tool

mmSolver.tools.deformmarker.lib.is_in_layer(attr, anim_layer)#

Checking if given attr is in anim layer.

Parameters:
  • attr (str) – Attribute

  • anim_layer (str) – anim layer name

Returns:

boolean

Return type:

bool

mmSolver.tools.deformmarker.lib.get_attr_blend_plugs(attr, anim_layer)#

Checking if given attr is in anim layer

Parameters:
  • attr (str) – Attribute

  • anim_layer (str) – anim layer name

Returns:

Attr inputs plugs

Return type:

list

mmSolver.tools.deformmarker.lib.get_min_and_max_from_plugs(plug)#

Minimum and maximum keyframe for the given plug

Parameters:

plug (str) – anim_layer plug

Returns:

minimum and maximum keyframe

Return type:

int, int

mmSolver.tools.deformmarker.lib.set_attr_value_array(attr, new_array, first_frame, last_frame)#

Sets value for a attribute for given frame range

Parameters:
  • attr (str) – Attribute

  • new_array (list) – array with values

  • first_frame (int) – Start frame

  • last_frame (int) – End frame

Returns:

None

mmSolver.tools.deformmarker.lib.is_key_framed(attrs)#

Querying if any of the given attribute is keyed.

Parameters:

attrs (list) – Attributes

Returns:

Boolean

Return type:

bool

mmSolver.tools.deformmarker.lib.find_animlayer(anim_layer)#

Finds whether given layer name is in the scene, if not then creates new anim layer with given name.

Parameters:

anim_layer (str) – Anim layer name

Returns:

Anim Layer

Return type:

str

mmSolver.tools.deformmarker.lib.get_attrs_for_offset(selection)#

Getting attributes for creating offset.

Parameters:

selection (list) – Maya selection

Returns:

Offset attributes

Return type:

list

Constant#

This file contains all the constants for deform marker tool.