Thumbnail

Slide Script

How to add the Slide Script robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Scripting category tab.
  5. Press the Slide Script icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Slide Script robot skill.

How to use the Slide Script robot skill

This skill operates similarly to the Servo Slide controls but adjusts the specified variable with a slider. You can also specify a script to execute when the slider value has been reached.

Main Window



1. Slider
Press and hold the left mouse button in this area to adjust the slider value. The slider value will be displayed here, and it will be between the minimum and maximum values set up in the skill settings.

2. Bonus Button
This button is only available when a script is added to the "Button Pressed Script." When pressed, it will execute the "Button Pressed Script."

3. Center Button
This button moves the slider value to the center (between the min/max values).

Settings



1. Title Field
This field contains the title of the skill. You can change it if you'd like. *Note: Changing the title will also change the title in the controlCommand() associated with this skill.

2. Min/Max Adjust
Click and hold the left mouse button to adjust the minimum/maximum position values. Right-click to enter it in with the keyboard. The range is between 0-1000. The minimum default value is 0, and the maximum default value is 100.

3. Slider Varaible
This variable holds the slider's value between the minimum and maximum values.

4. On Value Set Script
This script will activate whenever the slider is adjusted.

5. Button Pressed Script
This script will execute when the bonus button is pressed in the Main Window. *Note: A script must be added here for the bonus button to appear.

6. Button Name Field
In this field, you can add your name to the Bonus Button. The name will appear on the button itself.

How to use Script Slider


1) Add the Script Slider skill to your ARC project (Project -> Add Skill -> Scripting -> Slide Script).

2) Adjust the max/min values and add scripts as needed in the skill settings.

3) In the Main Window, adjust the slider by holding the left mouse button on the slider value area.


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.