from mayaAtomsMaya.utils import agentgroup
from AtomsMaya.hostbridge.atomsgroup import cmdsMayaAtomsGroupHostBridge
cmds.tcAtoms(init=True)
cmds.createNode('tcAgentGroupNode')
cmds.setAttr("tcAgentGroupNode1.modules[0].moduleType", "gridLayout", type="string")
cmds.setAttr("tcAgentGroupNode1.modules[0].moduleName", "gridLayout", type="string")
cmds.setAttr("tcAgentGroupNode1.atoms_gridLayout_sizeX", 3)
cmds.setAttr("tcAgentGroupNode1.modules[1].moduleType", "clipReader", type="string")
cmds.setAttr("tcAgentGroupNode1.modules[1].moduleName", "clipReader", type="string")
cmds.setAttr("tcAgentGroupNode1.atoms_clipReader_clipName", "atomsMaleWalk", type="string"agent_group = agentgroup.create_agent_group()
ag = MayaAtomsGroupHostBridge()
ag.set_app_obj(agent_group)
ag.add_module("gridLayout")
ag.add_module("stateMachine")
module_name = ag.add_module("addMetadata")
ag.set_metadata_value(module_name, "active", AtomsCore.BoolMetadata.staticTypeStr(), True)
ag.set_metadata_value(module_name, "name", AtomsCore.StringMetadata.staticTypeStr(), "test")
ag.set_metadata_value(module_name, "type", AtomsCore.IntMetadata.staticTypeStr(), 1)
ag.set_metadata_value(module_name, "intValue", AtomsCore.IntMetadata.staticTypeStr(), 10)
|