from AtomsHoudini.utils import scenesetup
from AtomsHoudini.hostbridge.atomsgroup import HoudiniAtomsGroupHostBridge
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)
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)
|