# RESOLVED: Using Buttons to Set Fader Levels

**URL:** https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379
**Category:** OSC/PILOT Bugs And Feature Requests
**Created:** [March 15, 2021, 3:37pm UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379 "2021-03-15T15:37:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![CassLD](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/cassld/32/52_2.png) [@CassLD](https://forum.oscpilot.com/u/CassLD)
#### Post date: [March 15, 2021, 3:37pm UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/1 "2021-03-15T15:37:39Z")

</div>

OK so I’m using touch OSC in the lighting world and I’m trying to have it mimic the way a lighting console works in the sense that nearly every fader has a button below it that puts that fader at full or zero or whatever. What I’m wondering is there a way using the OSC loopback to tell a specific fader what value to go to.

For example. I have a fader and a button below it. When the button is pressed it sends a MIDI note to the console and also an OSC Message using loopback that tells the fader above it to go to 100%. And then back to zero when it is unpressed.

Somewhat connected to this is there way to tell a fader to go to its "Return to " value via an OSC message? In future releases can the return to level be set via integer instead of slider for accuracy.

---

<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: [March 16, 2021, 2:55am UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/2 "2021-03-16T02:55:37Z")

</div>

You’ll want to set the button to send to the OSC Address of the fader and turn on OSC loopback. Then the fader will jump to the On value when you press the button and jump to the Off value when you release it.

---

<div class="post-metadata">

### Author: ![CassLD](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/cassld/32/52_2.png) [@CassLD](https://forum.oscpilot.com/u/CassLD)
#### Post date: [March 16, 2021, 5:19pm UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/3 "2021-03-16T17:19:07Z")

</div>

I couldn’t get it to work. I assume you name the OSC Address in the top field under SLIDER. Can you give me a syntax example? Im unclear how the slash works in the syntax.

---

<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: [March 16, 2021, 9:51pm UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/4 "2021-03-16T21:51:01Z")

</div>

In the OSC ADDRESS field for both the Slider and the Button, you put the same thing. It can be whatever you want, so /SomeAddress/OtherStuff, or anything. Just put the same text in both. Then turn on OSC Loopback in the Button, and it’ll set the Slider to whatever it’s On and Off value is when it’s pressed and released.

---

<div class="post-metadata">

### Author: ![CassLD](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.oscpilot.com/cassld/32/52_2.png) [@CassLD](https://forum.oscpilot.com/u/CassLD)
#### Post date: [March 17, 2021, 11:06pm UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/5 "2021-03-17T23:06:35Z")

</div>

This works but when the button is depressed the fader goes back to its previous position. It doesn’t stay at the level the button sets.

---

<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: [March 18, 2021, 1:28am UTC](https://forum.oscpilot.com/t/resolved-using-buttons-to-set-fader-levels/379/6 "2021-03-18T01:28:56Z")

</div>

If you don’t want the value to snap back when it’s released, clear out the Off value for OSC. Then it won’t send an Off message.
