Connect each button to its chute
TUTORIAL 05 • VISUAL SCRIPT + GUI DESIGNERS
There are three small visual graphs. Each has a single node. The only difference between them is the word it sends to the sorter.
1 Under Visual Scripts, add a graph named Press sheets, ID bin_sheets. Remove any starter node. Use Add Node or the palette to add Call Script Function. In its function picker choose Press sorter bin from Sorter logic. Under bin_name (string) type sheets, lowercase, without quotes. Leave Expression off and Result Variable empty. Save. A one-node graph needs no wire.
2 Create Press socks and Press towels the same way, or duplicate the first graph and change both its ID and its word. Use the exact pairings below. Apply and save each graph.
| GUI button | Click behavior | Click Target (graph ID) | bin_name in graph |
|---|---|---|---|
| Sheets | run-visual-script | bin_sheets | sheets |
| Socks | run-visual-script | bin_socks | socks |
| Towels | run-visual-script | bin_towels | towels |
Inside the Sheets button • Click runs bin_sheets. Scroll past Hover to reach these fields.
Inside Press socks • its node passes the literal word socks to the function.
3 Back in GUI Designer › Night sorter, click each button on the canvas, open Events, scroll to Click, choose run-visual-script and type the matching Click Target. Save. The button calls the graph, the graph supplies the word, and the function checks it.
PCA 3D Adventure Studio / 16
