United Kingdom
Asked — Edited
Resolved Resolved by CochranRobotics!

Rgb Animator Help

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.


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

United Kingdom
#9  

I have used the control commands for a lot of my project, some of which are already being used in connection established command. If I can run my ControlCommand "eyes" script straight from there then that's cool. But the reason why I ask is the message on the top of the event EZ script editor.

"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

United Kingdom
#10  

Almost forgot. Can anyone help with the question in my first post? ;)

PRO
Synthiam
#11  

That's what we're doing:)

United Kingdom
#12  

Are we? confused I thought we were talking about starting a script after the connection status issue (post #2). The first post (post #1) was regarding RGB editor playing sounds on selected actions (unless I missed something).

PRO
Synthiam
#13  

Ah, well you have 2 ways to do it...

  1. As d.cochran was explaining... "Create a new script that will launch both the Audio and the RGB Animator"

-or-

  1. 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
#14  

I have spent the day "repairing" the robots that my class uses. I am getting them back to 100% working order as after multiple classes with students working in teams, some of the servo motors have been stripped, and some of the parts have been moved from the left side to the right side of the robots and such. I have just finished putting JD back in working order and am looking at the RGB Animator right now. It is the first time that I have seen placing the script inside the Soundboard V4 control and it is really cool. I wish I had this for something I was doing a few months back. Nice addition DJ.

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.


ControlCommand("RGB Animator", AutoPositionAction, "banana")

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


ControlCommand("Soundboard v4", Track_0)

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.

United Kingdom
#15  

Thanks for that guys. Those solutions worked great. The deeper I dive in to ARC, the more smiles it puts in my face. :):):)

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. :D

United Kingdom
#16  

@DJsures.

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. cool cool cool . Can't wait to see what you and others will think of him.