Hey Guys loving everything about chilipepper! I have another question though,

Hey Guys loving everything about chilipepper! I have another question though, is there a way to change the workspace and have it load the same widgets all the time, IE start touchplate and shuttlexpress? Oh and save the height of my touch plate? Thank you again!!!

BTW, to get the widgets to load from your startup script do something like:

$(‘#com-chilipeppr-ws-gcode-menu .touchplate-button’).trigger(‘click’);

$(‘#com-chilipeppr-ws-gcode-menu .shuttlexpress-button’).trigger(‘click’);

To inject the height of your touch plate:
$(‘#com-chilipeppr-widget-touchplate .heightplate’).val(6.5);

$(‘#com-chilipeppr-ws-gcode-menu .touchplate-button’).trigger(‘click’);

$(‘#com-chilipeppr-ws-gcode-menu .shuttlexpress-button’).trigger(‘click’);

setTimeout(function() {
$(‘#com-chilipeppr-widget-touchplate .heightplate’).val(19.7);
$(‘#com-chilipeppr-widget-touchplate .frprobe’).val(50);
$(‘#com-chilipeppr-widget-touchplate .depthprobe’).val(-25);
},1000);

WORKS GREAT!! I had to add a timeout to get the values to change, I think it wasn’t fully loading the pervious steps before it tried to set values. Thank you so much for the help!

I love that this worked. It shows why the browser is the best place to build an app like this. Javascript/HTML/CSS is such an amazing platform for an app so that you can do stuff like this. Good luck trying to do something like you just did inside a Java app, or C# app, or Objective C, or Python.