mgear.animbits.channel_master_utils module

mgear.animbits.channel_master_utils.channel_has_animation(attr)

Check if the current channel has animaton

Parameters:

attr (str) – Attribute fullName

Returns:

Return true if the attribute has animation

Return type:

bool

mgear.animbits.channel_master_utils.current_frame_has_key(attr)

Check if the attribute has keyframe in the current frame

Parameters:

attr (str) – Attribute fullName

Returns:

Return true if the attribute has keyframe in the current frame

Return type:

bool

mgear.animbits.channel_master_utils.get_anim_value_at_current_frame(attr)

Get the animation value in the current framwe from a given attribute

Parameters:

attr (str) – Attribute fullName

Returns:

animation current value

Return type:

bol, int or float

mgear.animbits.channel_master_utils.get_attributes_config(node)

Get the configuration to all the keyable attributes

Parameters:

node (str) – name of the node that have the attribute

Returns:

All keyable attributes configuration

Return type:

dict

mgear.animbits.channel_master_utils.get_ctl_with_namespace(attr_config, namespace=None)
mgear.animbits.channel_master_utils.get_keyable_attribute(node)

Get keyable attributes from node

Parameters:

node (str) – name of the node that have the attribute

Returns:

list of keyable attributes

Return type:

list

mgear.animbits.channel_master_utils.get_single_attribute_config(node, attr)

Summary

Parameters:
  • node (str) – name of the node that have the attribute

  • attr (str) – attribute name

Returns:

attribute configuration

Return type:

dict

mgear.animbits.channel_master_utils.get_table_config_from_selection()
mgear.animbits.channel_master_utils.init_channel_master_config_data()

Initialize the dictionary to store channel master tabs configuration

mgear.animbits.channel_master_utils.init_table_config_data()

Initialize the dictionary to store the channel master table data

Items are the channels or attributes fullname in a list items_data is a dictionary with each channel configuration, the keys is the fullName

Returns:

configuration dictionary

Return type:

dict

mgear.animbits.channel_master_utils.next_keyframe(attr)
mgear.animbits.channel_master_utils.previous_keyframe(attr)
mgear.animbits.channel_master_utils.remove_animation(attr)

Remove the animation of an attribute

Parameters:

attr (str) – Attribute fullName

mgear.animbits.channel_master_utils.remove_key(attr)

Remove the keyframe of an attribute at current frame

Parameters:

attr (str) – Attribute fullName

mgear.animbits.channel_master_utils.reset_attribute(attr_config, namespace=None)

Reset the value of a given attribute for the attribute configuration

Parameters:

attr_config (dict) – Attribute configuration

mgear.animbits.channel_master_utils.reset_creation_value_attribute(attr_config, namespace=None)

Reset the value of a given attribute for the attribute configuration

Parameters:

attr_config (dict) – Attribute configuration

mgear.animbits.channel_master_utils.set_key(attr)

Keyframes the attribute at current frame

Parameters:

attr (str) – Attribute fullName

mgear.animbits.channel_master_utils.sync_graph_editor(attr_configs, namespace=None)

sync the channels in the graph editor

Parameters:

attr_configs (list) – list of attribute configuration

mgear.animbits.channel_master_utils.value_equal_keyvalue(attr, current_time=False)

Compare the animation value and the current value of a given attribute

Parameters:

attr (str) – the attribute fullName

Returns:

Return true is current value and animation value are the same

Return type:

bool