mgear.animbits.channel_master_node module

mgear.animbits.channel_master_node.create_channel_master_node(name)

Create a new channel master node

Parameters:

name (str) – name of the nodes

Returns:

name of the channel master node

Return type:

str

mgear.animbits.channel_master_node.export_data(node, tab=None, filePath=None)

Export the node data

Parameters:
  • node (str) – node to export

  • tab (str, optional) – if a tab name is set, only that taba will be exported

  • filePath (str, optional) – the path to save the configuration file

Returns:

Description

Return type:

TYPE

mgear.animbits.channel_master_node.get_external_data(node)
mgear.animbits.channel_master_node.get_node_data(node)

Get the configuration data from a node Can get the data from the external data or from local data

Parameters:
  • node (str) – nme of the node

  • use_local_data (bool, optional) – If true will force to use the node local data

Returns:

configuration data

Return type:

dict

mgear.animbits.channel_master_node.import_data(filePath=None, node=None, add_data=False)

Import and create channel master configuration nodes

Parameters:
  • filePath (str, optional) – Path to the channel master config file

  • node (None, str) – Node to add the data. If None, will create a new node

  • add_data (bool, optional) – If true, will add the data to existing node

Returns:

Description

Return type:

TYPE

mgear.animbits.channel_master_node.list_channel_master_nodes()

return a list of channel master nodes in the scene

Returns:

List of channel master nodes

Return type:

list

mgear.animbits.channel_master_node.remove_external_config_path(node)
mgear.animbits.channel_master_node.set_external_config_path(node, filePath=None)

Set the path to the external file configuration

Parameters:
  • node (PyNode) – Channel Master node

  • filePath (str, optional) – Path to the file confituration

Returns:

Description

Return type:

TYPE

mgear.animbits.channel_master_node.set_node_data(node, data)

Set the node data attribute

Parameters:
  • node (str) – node name

  • data (dict) – configuration dict