How to set a Channel range in Vex

   2730   1   0
User Avatar
Member
2 posts
Joined: Jan. 2017
Offline
hello everybody,

I am sure there is a way to set the range of a channel in Vex.

eg.
int seed = ch(“seed”);

then I'll find in the UI a range from 0 to 1. Currently, I dig into the “edit parameters interface” to change it.

Any Vex solution?

Cheers
S
Edited by Simoleo - Sept. 25, 2018 07:32:20
User Avatar
Member
2035 posts
Joined: Sept. 2015
Offline
You mean the ability to change the UI parameter range dynamically?

If so, no you can't do it with vex, you have to use python.

And I had the need to do that before and the effort wasn't worth it, meaning, unless my approach with python wasn't very good, I remember it was more work to get the change to update then simply changing the parameter manually.

Even better solution, was to put in vex code ‘out of range’ checks and a pop up message if it's critical that you don't enter values with the parameter that might adversely affect your setup.
  • Quick Links