Can variable_bed_mesh_profile be set in the slicer?
quandary here.... for different bed temps (printing different materials) , resulting in different meshes.... can variable_bed_mesh_profile be called from the slicer g-code to load an appropriate mesh...rather than just setting it in printer.cfg?
tia
11 Replies
absolutely. use
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=bed_mesh_profile VALUE="'your_mesh'"
quick question, VALUE has to be in string?
in quotes?
without quotes I am getting: Unable to parse 'beacon_ASA_G11' as a literal: malformed node or string:
Yes if it has spaces
i tried manually typing in console
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=bed_mesh_profile VALUE=ASA1
and it returns the same error
Just use quotes then
@miklschmidt well quotes just gave me the same error. i am lost
Hmm.. Seems like there's a bug in klipper, you can't use SET_GCODE_VARIABLE with strings.
Ah.. not a bug, that's apparently intended. I have no idea why
@auggie246 this should work:
SET_GCODE_VARIABLE MACRO=RatOS VARIABLE=bed_mesh_profile VALUE="'ASA1'"
It makes sense now. It's parsed as a literal or else you wouldn't be able to assign anything other than strings. This way you can do all types.Fixed, thank you