/
Creating agent groups
Creating agent groups
Maya
from AtomsMaya.utils import agentgroup from AtomsMaya.hostbridge.atomsgroup import MayaAtomsGroupHostBridge cmds.tcAtoms(init=True) 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)
Houdini
from AtomsHoudini.utils import scenesetup from AtomsHoudini.hostbridge.atomsgroup import HoudiniAtomsGroupHostBridge scenesetup.initialize_atoms_scene() agent_group = scenesetup.create_agent_group_node() ag = HoudiniAtomsGroupHostBridge() 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)
, multiple selections available,
Related content
Behaviour module handling
Behaviour module handling
More like this
State machine debugger data
State machine debugger data
More like this
Iterating through the agents of an agent group
Iterating through the agents of an agent group
More like this
Agent group (AtomsMaya/AtomsHoudini)
Agent group (AtomsMaya/AtomsHoudini)
More like this
Check if an agent is in a transition
Check if an agent is in a transition
More like this
Reading the world joint matrices of an agent
Reading the world joint matrices of an agent
More like this
Copyright © 2017, Toolchefs LTD.