Is there any way that this plugin could inject start/end gcode blocks that can be customized per material? My primary use case for this is that the bed mesh for a lot of cheap beds will change significantly as you heat up the bed, so it would be really convenient to be able to store multiple meshes (a function that Marlin does support) corresponding to different bed temperatures, and then restore the mesh corresponding to the correct bed temperature using G29 L. As it is, there's no real way to easily switch the mesh index when you change materials (i.e. change bed temperature), so the only real solution is to just use a single stored mesh, and re-generate the whole thing any time you change bed temperature.
Example bed mesh renders of the exact same bed, the only difference is the bed temperature.
25C:

65C:

85C:

115C:

Also, ideally, it would be nice to be able to specify whether the injected blocks occur before or after the start/end block defined for the machine, because in some cases it might be useful to have it occur before, and in other cases it might be better to have it occur after.
Is there any way that this plugin could inject start/end gcode blocks that can be customized per material? My primary use case for this is that the bed mesh for a lot of cheap beds will change significantly as you heat up the bed, so it would be really convenient to be able to store multiple meshes (a function that Marlin does support) corresponding to different bed temperatures, and then restore the mesh corresponding to the correct bed temperature using G29 L. As it is, there's no real way to easily switch the mesh index when you change materials (i.e. change bed temperature), so the only real solution is to just use a single stored mesh, and re-generate the whole thing any time you change bed temperature.
Example bed mesh renders of the exact same bed, the only difference is the bed temperature.
25C:

65C:

85C:

115C:

Also, ideally, it would be nice to be able to specify whether the injected blocks occur before or after the start/end block defined for the machine, because in some cases it might be useful to have it occur before, and in other cases it might be better to have it occur after.