Variable manipulation from DWC
-
Hi,
To get the most out of RRF3 variables we need a way to view/set them from the DWC.
What is the state of that:
- go away and leave us alone
- a bad idea and being ignored
- being considered
- being worked on
- some done
- all done
Thanks.
Frederick
-
@fcwilt
You can already view them in the object model and set them via the console.
I guess with a little JavaScript a user input popup might be of use to some in cases where the variables aren't calculated.What did you have in mind exactly?
-
@owend said in Variable manipulation from DWC:
@fcwilt
You can already view them in the object model and set them via the console.
I guess with a little JavaScript a user input popup might be of use to some in cases where the variables aren't calculated.What did you have in mind exactly?
Visual controls like checkboxes, spinners (up/down a value), sliders, pull-down menus to select from certain values, etc.
In my current cases I have three different "modes" that need setting. Currently I have a macro button for each mode that cycles through them but nothing on the DWC that displays their current status all the time.
Frederick
-
@fcwilt
At the moment what you ask for would be a nightmare to implement.
How does DWC know what type your variable is?
Integer, float, string?
If integer or float, how does it know if you need a slider or drop down?
What increments?When arrays are available it would be easier as you could assign an array of values with which to fill a drop down for instance.
Probably more suited to something like the button command plug-in than DWC itself.
-
@fcwilt Just my opinion here but it sounds like you have something specialized for your needs. You may be better off making a custom plugin to handle the variable manipulation and drop downs that you need.
-
@sindarius said in Variable manipulation from DWC:
@fcwilt Just my opinion here but it sounds like you have something specialized for your needs. You may be better off making a custom plugin to handle the variable manipulation and drop downs that you need.
Any idea where I can read about custom plugins and how to create one?
Thanks.
Frederick
-
You may see an example here: https://github.com/Duet3D/DSF-Plugins/releases
-
@fcwilt said in Variable manipulation from DWC:
@owend said in Variable manipulation from DWC:
In my current cases I have three different "modes" that need setting. Currently I have a macro button for each mode that cycles through them but nothing on the DWC that displays their current status all the time.Frederick
I'm pretty sure whatever you're after can be done using btncmd plug-in
https://forum.duet3d.com/topic/22776/btncmd-dwc-plugin-create-custom-layouts-action-buttons/97 -
@owend said in Variable manipulation from DWC:
I'm pretty sure whatever you're after can be done using btncmd plug-in
https://forum.duet3d.com/topic/22776/btncmd-dwc-plugin-create-custom-layouts-action-buttons/97Thanks, I will check that out.