How to use the RouterBus Arm and Take feature

Routerbus controls now have a setting that allows you to preset a source to be taken on command from a button (or any other control). Here’s a quick tour. You can download the example panel from here: Router Arm Take

Let’s see this in action first

media_1369038324355.png

Here’s our panel:

1 – RouterBus control
2 – Take button
3 – text label to show us the source on output 0

Select another source

media_1369038372467.png

We just clicked on Input 3, and now you can see it’s highlighted in a faded version of the active source showing that it is armed and ready to take.

Click the Take button

media_1369038480276.png

and the router switches to Input 3.

Now let’s see how this works behind the scenes…

RouterBus ArmAndTake property is set to True

media_1369038626698.png

The RouterBus is set up in the normal way and linked to the Router ( DUMMYRTR_1 in this case). To enable the Arm and Take feature you set the ArmAndTake property to True.

Take button script

media_1369038816281.png

The script for the Take button is a simple one-line command.

ROUTERBUS_1:Take()