I need it as an enable/disable flag to use it with the editor.
I thought about using the Label attribute, but it’s not possible to modify it after it’s created. Is there a reason why Label cannot be modified?
For the moment I have solved it by adding an associated parameter, I use the same ID string with a character for a parameter that can take the value 0 or 1.
I don’t know what you mean by a “custom attribute”. A parameter has one value.
also has attributes, which are stored together with the value and the ranged parameters
Well, rather than an attribute, it would be a state that I need to store, in this case on or off, so that the parameters that I have not activated or have deactivated, remember that state when I retrieve them. I can’t use the value to set the state since I want to keep the current value of the control.
“Attributes” is just the name of a struct containing various settings/metadata that you pass to the constructor. That’s not really extra parameter state. Fundamentally, a parameter object is just one value.
It sounds like you need 2 parameters, one for the actual value and one for on/off.
but an attribute could be valid if I could modify it later, these are attributes according to the documentation
Public Attributes
const String paramID
Provides access to the parameter’s ID string.const String name
Provides access to the parameter’s name.const String label
Provides access to the parameter’s label.const Category category
Provides access to the parameter’s category.
I don’t care if it was only a string, in a string this could even store an array of numbers separated by commas if necessary.
Initially I thought about using Label, since I don’t need it, but the problem is that it is not possible to modify Label later. it is not possible to modify anything, only the value, I suppose it will have a justified cause.
so copyState only saves the id and the value of the parameter, and it is not possible to save other data?
Right. Like I said, a parameter stores only one value and no other data. If you need to save 2 values, you need 2 parameters.
