mmSolver.tools.setattributedetails#

A tool to set meta-data on individual attributes, per-Collection.

Tool#

Library#

Library functions for Solver UI.

class mmSolver.tools.setattributedetails.lib.AttrDetail(state, min_enable, min_value, max_enable, max_value, smoothness_enable, smoothness_variance, smoothness_weight, stiffness_enable, stiffness_variance, stiffness_weight, curve_min, curve_max, curve_mean, curve_variance, curve_frame_variance, curve_max_variance)#
property curve_frame_variance#

Alias for field number 15

property curve_max#

Alias for field number 12

property curve_max_variance#

Alias for field number 16

property curve_mean#

Alias for field number 13

property curve_min#

Alias for field number 11

property curve_variance#

Alias for field number 14

property max_enable#

Alias for field number 3

property max_value#

Alias for field number 4

property min_enable#

Alias for field number 1

property min_value#

Alias for field number 2

property smoothness_enable#

Alias for field number 5

property smoothness_variance#

Alias for field number 6

property smoothness_weight#

Alias for field number 7

property state#

Alias for field number 0

property stiffness_enable#

Alias for field number 8

property stiffness_variance#

Alias for field number 9

property stiffness_weight#

Alias for field number 10

mmSolver.tools.setattributedetails.lib.create_attr_detail(state=None, min_enable=None, min_value=None, max_enable=None, max_value=None, smoothness_enable=None, smoothness_variance=None, smoothness_weight=None, stiffness_enable=None, stiffness_variance=None, stiffness_weight=None, curve_min=None, curve_max=None, curve_mean=None, curve_variance=None, curve_frame_variance=None, curve_max_variance=None)#
mmSolver.tools.setattributedetails.lib.attr_detail_from_previous(value, state=None, min_enable=None, min_value=None, max_enable=None, max_value=None, smoothness_enable=None, smoothness_variance=None, smoothness_weight=None, stiffness_enable=None, stiffness_variance=None, stiffness_weight=None, curve_min=None, curve_max=None, curve_mean=None, curve_variance=None, curve_frame_variance=None, curve_max_variance=None)#
class mmSolver.tools.setattributedetails.lib.CurveStatistics(min_value, max_value, mean_value, variance, frame_variance, max_variance)#
property frame_variance#

Alias for field number 4

property max_value#

Alias for field number 1

property max_variance#

Alias for field number 5

property mean_value#

Alias for field number 2

property min_value#

Alias for field number 0

property variance#

Alias for field number 3

mmSolver.tools.setattributedetails.lib.create_curve_statistics(min_value=None, max_value=None, mean_value=None, variance=None, frame_variance=None, max_variance=None)#
mmSolver.tools.setattributedetails.lib.get_active_collection()#

Get the active collection object in the current scene file.

Returns:

The active Collection object, or None if no Collection is active.

Return type:

Collection or None

mmSolver.tools.setattributedetails.lib.get_selected_maya_attributes()#

Get the currently selected attributes from the Channel Box.

This function uses Maya ChannelBox logic to get the objects, which is based on the selection, but may be doing more complex logic.

Returns:

List of Attribute objects for all nodes in the Channel Box.

Return type:

list of Attribute

mmSolver.tools.setattributedetails.lib.get_selected_node_default_attributes()#

Get the attributes on the selected nodes.

Returns:

List of mmSolver API Attribute objects.

Return type:

[Attribute, ..]

mmSolver.tools.setattributedetails.lib.input_attributes_filter(attr_list)#

Apply logic to remove any non-input attributes from the given list.

Parameters:

attr_list ([Attribute, ..]) – Attribute list to filter.

Returns:

List of attributes that are filtered.

Return type:

[Attribute, ..]

mmSolver.tools.setattributedetails.lib.get_curve_statistics(attr)#
mmSolver.tools.setattributedetails.lib.convert_attributes_to_detail_values(col, attr_list)#
mmSolver.tools.setattributedetails.lib.set_attribute_state(attr, state)#
mmSolver.tools.setattributedetails.lib.set_attribute_details(col, attr, values)#

User Interface#

Constants#

Holds all constant data needed for the ‘set attr details’ UI.