I'm investigating the possibilities to have node parameters communicate with VEX code.
So far, it seems that with Python it is easy to both read and write parameters. This is the simple UI for a user.
However, with VEX it is easy to read a parameter. For example:
// read a string parm string a = ch('groups_parm_str'); printf("%g", a);
Though, I'm starting to doubt that you can set a parm with VEX only.
If so, maybe I'll need to combine Python and VEX to do this?
What do you think? Is is possible to do this with only VEX?
This info [www.sidefx.com] about "Accessing parameter values" does not help much at the moment.
On the same docs page it sais:
"To access the value of a user created parameter, use the chv vex function."
This will return a value of a parameter or a channel, but not set it.
Also, I've understood the attributes part and am not interested in that here. This is about the UI from a user's point of view.
Edit:
For now I've used a subnet with my parms. Then inside there is first som py code. Then an attribute wrangle follow.
The Py code will be able to read some simple data, present it for the user, and then the user can do informed choices.
After that the VEX code will only read the parms with settings from the user and do its thing.