Asked
— Edited

Hi guys.
I have a quick question regarding the RGB animator config "Settings" menu. At the moment I have 4 animator actions and would like to know if I can asign a soundboard file to just one of these actions, and not have all four actions play the sound file on the "Positioner start script"?
Or is it a case of having 2 animator controls, one with sounds and one without?
Thanks in advance.
Steve.
I hope you can understand what I mean. If not, let me know.
Apply what you learn from that lesson to the Connection Control's Configuration Menu. And as @d.cochran said, you're code will go into the Connection Established
Startup Script
Code:
Here are the other scripts
Battery Monitor - This script is from Rich and is old. I am replacing it with the abilities that the V4 has built into it already. I was using this when I was passing only 5 volts to the V4 but was using 7.4 volt batteries. Now I pass 7.4 volts to the V4 and regulate power after the V4.
Code:
Set LED's for power
Code:
Light monitor
Code:
tilt monitor
Code:
temp monitor
Code:
Personality Generator
Code:
Let me know if you have any questions.
Thanks
David
Thanks for your reply. I will have a look. I didn't think I could add a long running script in the connection config as it would block other commands from executing. I already have a connection script that runs for about 10 seconds, but what I want to add would run for a lot longer (blinking eye animation). I will check out the lesson though.
@d.cochran.
Wow, didn't expect that much. Thanks very much for that. I will go through it and see if I can figure out what I need.
Also, I wanted to make sure you had enough to learn from. Each of these scripts either calls other scripts or movements. I dont have an example of calling the rgb component but it would be done the same way. Also, in ARC, when you are editing a script, you can use the Cheat Sheet tab which will allow you to add other scripts or actions that you have programmed to be called by your script by clicking on the command you want to add. You will see this done above through the use of the ControlCommand command.
Of course, it will only run for ever if the checkbox is set for "repeat" on Auto Position or RGB Animator
It isn't great practice to through loops and such in the connection control - that's too much overhead for the connection established feature. However, nudging another script to "start" with the ControlCommand() is safe.
Essentially, ControlCommand() is the same effect as a human pressing the buttons on the control that you are directing it too. As a human, you don't press a button, sit, stare and wait for it to finish... You move on to other things - and that's how the ControlCommand() was designed.
"You are editing an event with EZ-Script. While this code executes, it will block other events of this control from executing. Make sure you are not performing any time-consuming operations in this event code."
What u want to run will run for quite a while as I mentioned, is for a pair of eyes that will blink, roll ect on a loop, so I didnt think this was the right place to put this script.
I have already gone through the scripting lesson a while back and got a lot from it, but there are still some things I just can't get the hang of. *confused*
1) As d.cochran was explaining... "Create a new script that will launch both the Audio and the RGB Animator"
-or-
2) Have the RGB Animator trigger FROM the audio, not the other way around. Do that by pressing the EDIT button on the audio and adding a script positioned at the point in the audio
I would call your script from within the Soundboard V4. It is a very easy way to make the script start at a specific time in the song, or call one script and then another later. The script would be something like this.
Code:
This is added to the song in a location you specify by right mouse clicking in the sound section (black background with green line) and then selecting Add Script. In the Script section (bottom of the control) you can click the Edit Script button and put in the code above. It will call the Banana RGB Animation Action. Just replace Banana with the RGB sequence you want to use.
Now, in your startup script, when you are ready for the sound file to play, just add
Code:
replacing Track_0 with the location of the track you want to play.
That should get you what you want. If you want multiple RGB Animations to run, just add those to the Soundboard V4 song where you want them to activate.
Let us know if you have any questions.
Haven't had a look in regards to my second question about the auto script start after my connection script has run, but I will do shortly and hopefully figure it out.
Thanks again d.cochran and DJ for your help.
Just a quick update. Tried the RGB start ControlCommand() in the connection script, and works like a charm. Thanks once again for your assistance. Bit of a Homer Simpson moment for me as that was really easy to set up. *eyeroll* love the ControlCommand() option. Nice job.
Hey, K-9 2.0 will be up in the project showcase within a couple of weeks if your interested. I know your a Dr Who fan. Just need to do some finishing touches and knock up a video or 2 to show him off.
No pressure then lol. *sick*
Don't remember the cool dude duck in DW though. Must of missed that episode.
I'm having an issue with RGB animator and sound files. Can you have a look post #6 here and suggest what the problem could be. Thanks.