I don't know whether this is even possible with the Cura plugin system, but it would be great to be able to add custom settings which would translate to gcode macro calls. You would have to specify a setting name, input parameter type, and the gcode template it translates to.
An example use case could be whether to enable KAMP (adaptive meshing) or use a pre-existing mesh profile. Or control LEDs, etc.
Alternatively, you could have a SET_GCODE_VARIABLE setting, which would take variable name, macro name, and value. You could then check for the values in your PRINT_START to call the functions you need and effectively achieve the same thing.
I don't know whether this is even possible with the Cura plugin system, but it would be great to be able to add custom settings which would translate to gcode macro calls. You would have to specify a setting name, input parameter type, and the gcode template it translates to.
An example use case could be whether to enable KAMP (adaptive meshing) or use a pre-existing mesh profile. Or control LEDs, etc.
Alternatively, you could have a SET_GCODE_VARIABLE setting, which would take variable name, macro name, and value. You could then check for the values in your PRINT_START to call the functions you need and effectively achieve the same thing.