Automatically generate widgets from variables, based on their types.
It's still in a prototype phase and, right now, the variables in the script are not getting updated if you change the corresponding values in the widget(no binding happening). Also, script is not getting exec and it's not doing anything. It's just something I've been wanting to do for some time but never got the time to do it. Plus, it was an opportunity for me to get my feet wet with Qt(PySide2), and, in the end, it's also going to be very useful for future utilities that myself—or anyone, now—might write.
...
-
Rethink the variable naming format(currently, it only generates widgets for variables prefixed by "UI_". This is by design, and the rationale is that you might not want all your variables showing up in the GUI, so you explicitly tell which ones you do want, but the ideal scenario would be that you don't even have to do anything and your variables just work. Maybe only global variables with no leading underscores should show up;
-
Improve the design of how variables are extracted;
-
Expand the widget set to include all kinds of type-widget mappings, like color wheels for color types/classes/objects;
-
Improve the design of the type-widget mapping system;
-
Add button, at the bottom of the stack, to load/add new script;
-
Add button to Panel, to unload or disable script;
-
Future: Perhaps even try to infer the type based on the value("#808080"—or rgba(0.5, 0.5, 0.5, 1.0)(hopefully linear color from the start)—would be inferred as of a color type, for example. We could even have plugins register what widgets they have available or want to use, and make available the ability to choose which widget is to be mapped to a given compatible type e.g.: which color widget to map to type "color").