Add the ability to use placeholders from 'Setting Overides' even with an undefiuned value when not toggled #96

Open
opened 2026-04-05 16:18:26 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @MrMonkey1302 on 3/29/2026

Is there an existing issue for this feature request?

  • I have searched the existing issues

I'm trying to write custom gcode to use the long retraction when cut setting overide in filament but the gcode is not parse if it is not toggled to on.

Which printers will be beneficial to this feature?

All

Describe the solution you'd like

I would like to be able to use placeholders from setting overides and if it's not toggled to overide, assume the value is false rathen than fail to parse.

Describe alternatives you've considered

  • Tried {if filament_long_retractions_when_cut[0] > 0}
  • Tried {if filament_long_retractions_when_cut[0] == true}
  • Tried {if filament_long_retractions_when_cut[0] == nil}
  • Tried {if is_defined(filament_long_retractions_when_cut)}
  • Various iterations of those above. All failed to parse when set to off/do not overide

Additional context

By toggled, I mean the setting override rather than the actual on or off value assosiated with the setting.
(Left toggle box, not right)

*Originally created by @MrMonkey1302 on 3/29/2026* ### Is there an existing issue for this feature request? - [x] I have searched the existing issues ### Is your feature request related to a problem? I'm trying to write custom gcode to use the long retraction when cut setting overide in filament but the gcode is not parse if it is not toggled to on. ### Which printers will be beneficial to this feature? All ### Describe the solution you'd like I would like to be able to use placeholders from setting overides and if it's not toggled to overide, assume the value is false rathen than fail to parse. ### Describe alternatives you've considered - Tried `{if filament_long_retractions_when_cut[0] > 0}` - Tried `{`if filament_long_retractions_when_cut[0] == true} - Tried `{`if filament_long_retractions_when_cut[0] == nil} - Tried `{`if is_defined(filament_long_retractions_when_cut)} - Various iterations of those above. All failed to parse when set to off/do not overide ### Additional context By toggled, I mean the setting override rather than the actual on or off value assosiated with the setting. (Left toggle box, not right)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#96