Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow parameter attribute changes besides value during callback methods #52
A DynamicPlugin has the capability to update an input's attributes, such as minimum and maximum values, at runtime. This is useful e.g. if you want to set one parameter's min and max to match that of another input parameter (say a Dataset).
Currently though, callbacks only occur during input harvesting, which means that in a UI context there is a dialog onscreen. The dialog's components have already been built and would have to be updated to have the new min/max/etc. attributes.
We could have callbacks occur any time an input changes (and this would actually be much cleaner to have the module framework completely take care of it). However, that would not fully solve the problem of widget refreshes; it's easy to refresh the widget's value but harder to refresh its structure.