Agent Groupを作成する

Maya

from maya import cmds

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")


Houdini

from AtomsHoudini.utils import scenesetup

scenesetup.initialize_atoms_scene()

agent_group = scenesetup.create_agent_group_node()
scenesetup.add_agent_group_module(agent_group.path(), "stateMachine")


agent_group.parm("atoms_stateMachine_state").set(1)

Copyright © 2017, Toolchefs LTD.