# ADDED: Buttons OSC variable number address

**URL:** <https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318>\
**Category:** OSC/PILOT Bugs And Feature Requests\
**Created:** [December 28, 2020, 11:27pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318 "2020-12-28T23:27:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mind1](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Mind1](https://forum.oscpilot.com/u/Mind1)\
**Post date:** [December 28, 2020, 11:27pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/1 "2020-12-28T23:27:42Z")

</div>

New user trying to setup a template for Resolume. I am working on a system to trigger columns. I would like to use the buttons group as opposed to programming a single button for every column. The reason for this is to set the group to toggle, so that the column that I trigger, corresponds on the lit up button on the controller, switching to off as I trigger another column… hopefully this is clear as mud.

The issue: The OSC address works by adding consecutive numbers to the end of the address. In Resolume, however, the address is **/composition/columns/3/connect** where the column number is in the middle of the address.

Is there a way to set that as the variable parameter in the address currently or am I stuck with creating a button for each and not having a visual cue as to which column is on?

Thanks!

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [December 29, 2020, 4:58pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/2 "2020-12-29T16:58:19Z")

</div>

Thanks for your question. Currently there is no way to do this, however maybe I can make the address accept a wildcard \* character as a way to choose where the # goes for buttons/sliders. E.g  
/composition/columns/\*/connect

---

<div class="post-metadata">

**Author:** ![SirSickSik](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SirSickSik](https://forum.oscpilot.com/u/SirSickSik)\
**Post date:** [December 31, 2020, 11:27am UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/3 "2020-12-31T11:27:58Z")

</div>

that would be really nice. If it would also possible to append it to a name like CH2N\* (-\>CH2N1, CH2C2, etc) instead of also adding the “/”, it could save a lot of renaming when using touchdesigner as a midi2osc converter.

---

<div class="post-metadata">

**Author:** ![Mind1](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Mind1](https://forum.oscpilot.com/u/Mind1)\
**Post date:** [December 31, 2020, 7:13pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/4 "2020-12-31T19:13:14Z")

</div>

Yes, this would be awesome for Resolume using OSC

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [December 31, 2020, 11:31pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/5 "2020-12-31T23:31:51Z")

</div>

Currently the KEYS widget uses the format /note\_#. I wonder if it was incorrect to use note\_# and instead it should have just been /# …

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [January 1, 2021, 12:07am UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/6 "2021-01-01T00:07:40Z")

</div>

Ok, in the next build I post you can use # in the Buttons and Sliders widgets to choose where in the OSC Address the index ends up. If you use # more than once the index will show up multiple times.

---

<div class="post-metadata">

**Author:** ![clava](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@clava](https://forum.oscpilot.com/u/clava)\
**Post date:** [July 1, 2023, 7:28pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/7 "2023-07-01T19:28:24Z")

</div>

Hi! Been using these button grids and encountered a problem; when creating a grid with more than 9 buttons the adressing gets wierd.  
Im trying to send to /Page1/Key201 - /Page1/Key226. Though if i set the adress as /Page1/Key20# i end up with /Key2010 /Key2011 etc when there double digits, and /Page1/Key2# instead gives /Key21 /Key22 and so forth when theres only one digit. Adding two hashtags seems to just write the same number twice.  
Is there a way to get around this, and if not, would it be possible to implement? An easy way would be to have one hashtag per digit, so i would write my adress as /Page1/Key2## to get /Key201 as the first adress or /Page1/Key### to get /Key001 as the first adress.

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [July 9, 2023, 6:27pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/8 "2023-07-09T18:27:06Z")

</div>

Thanks for the feedback. Offhand using multiple hashes seems odd since you wouldn’t want to force someone to use ## to have anything above 9.  
Are you not able to split your OSC address into 2/# to better group them?

---

<div class="post-metadata">

**Author:** ![clava](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@clava](https://forum.oscpilot.com/u/clava)\
**Post date:** [July 16, 2023, 10:48pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/9 "2023-07-16T22:48:57Z")

</div>

Well if that is the case then I guess it is still better than not being able to create more than 9 buttons. Adding an extra hashtag does not seem like that much trouble to me.

The program I am using for this does not allow me to rename the buttons 😕

---

<div class="post-metadata">

**Author:** ![malcolm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/malcolm/32/19_2.png) [@malcolm](https://forum.oscpilot.com/u/malcolm)\
**Post date:** [July 18, 2023, 3:31pm UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/10 "2023-07-18T15:31:56Z")

</div>

I wonder if a better solution would be to allow a ‘base number’ to be set for your buttons. So you could have them start counting up from 200 instead?

---

<div class="post-metadata">

**Author:** ![clava](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@clava](https://forum.oscpilot.com/u/clava)\
**Post date:** [October 3, 2023, 8:31am UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/11 "2023-10-03T08:31:13Z")

</div>

That should work i think

---

<div class="post-metadata">

**Author:** ![clava](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@clava](https://forum.oscpilot.com/u/clava)\
**Post date:** [October 8, 2023, 6:56am UTC](https://forum.oscpilot.com/t/added-buttons-osc-variable-number-address/318/12 "2023-10-08T06:56:52Z")

</div>

Sorry for my late reply!

For the program ive been referring to it should work great with a base number. Not sure what is the best solution for other programs, i’ll let you be the judge of that.
