Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more ways of sending color via OSC #509

Closed
helgoboss opened this issue Dec 24, 2021 · 1 comment
Closed

Add more ways of sending color via OSC #509

helgoboss opened this issue Dec 24, 2021 · 1 comment
Labels
enhancement New feature or request high priority

Comments

@helgoboss
Copy link
Owner

helgoboss commented Dec 24, 2021

TouchOSC doesn't support the native OSC color type (type tag 'r'), which ReaLearn currently uses to send color values. However, they support the following two ways (citation from their reply):

  1. Send a string to property 'color':
    RRGGBBAA / RRGGBB / GG / GGAA
    same as described here for 'Color.fromHexString' function:
    https://hexler.net/touchosc/manual/script-objects-color#static-functions

  2. map OSC message arguments to color components:

image

Note that color.r color.g color.b in this example are Arguments; so if a message is received such as /button1 1 1 1, each of the message arguments corresponds to the arguments shown in the message assignment.
So as such you could send three values like this as long as the message is mapped properly to the correct address.

@helgoboss helgoboss added enhancement New feature or request high priority labels Dec 24, 2021
@helgoboss helgoboss changed the title Add one more way of sending color via OSC Add more ways of sending color via OSC Dec 29, 2021
@helgoboss
Copy link
Owner Author

Approach 1 now supported by using the feedback argument expression style.color.rrggbb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority
Projects
None yet
Development

No branches or pull requests

1 participant