tom.caine
USA
Asked
— Edited
Hi,
This is a basic scripting question. I figured out how to do QR code tracking. It's pretty straight forward. I entered a word into the QR code generator and then created a script to speak the word in the Camera config. Then I figured out that a QR code could also trigger an action:
Format Code 1: ControlCommand("Auto Position", AutoPositionAction, "3 Legs Dance")
Works great. The question is, what scripting do I enter to get Six to stop dancing after say, a few seconds? Follow up question - where do I enter the script - Format Code 2?
Thanks-
Tom
Hey Tom,
This code should work:
Basically what's happening is
Hope this helps!
Assuming you want it in the same script, and stop on its own after some number of seconds (I'll use 5 in my sample), your script would look like this:
The Sleep command expects milliseconds.
You could also create a "stop" AutoPositionAction which returns everything to a resting position, in which case your last line would be:
You can also have other scripts issue the stop command, so for instance, it would keep dancing until you tell it to stop, or some other event occurs rather than just a simple timer.
Alan
Ok thanks. I'll try it out.
Tom
Works! I also used voice recognition and said "robot stop." That worked too.
Thanks again.