I’ve made a custom behavior control plugin and use the EZ_Builder.Scripting.Executor.StartScriptBlocking method to run commands. However, I can’t get it to properly run the Test Script in Script Manager:
Code in Script Manager - Test:
ControlCommand("Auto Position", AutoPositionAction, "Disco Dance")
ControlCommand("RGB Animator", AutoPositionAction, "Spin")
SayWait("This test will make me dance and light up my eyes then stop.")
ControlCommand("Auto Position", AutoPositionFrame, "STAND", 25, 3, -1)
ControlCommand("RGB Animator", AutoPositionAction, "Idle")
When the above code is played via the Script Manager control, the robot dances and lights its eyes up while speaking through the PC.
Code in behavior control plugin:
EZ_Builder.Scripting.Executor executor = new EZ_Builder.Scripting.Executor();
executor.StartScriptBlocking(EZ_Builder.Scripting.Compiler.Compile("ControlCommand(\"Script Manager\", ScriptStartWait, \"Test\")"));
However, the code in the behavior control plugin only speaks and doesn’t move or change its eye LEDs at all.
Does anyone know how to fix this?
NB: Disco Dance and Spin both repeat so I can’t wait for their status variables to be cleared.