KlipperSettingsPlugin icon indicating copy to clipboard operation
KlipperSettingsPlugin copied to clipboard

Not able to select "Pressure Advance Control" under "Select settings" in Material preferences (using Cura Klipper plugin)

Open DrWB63 opened this issue 1 year ago • 1 comments

Version: Cura 5.9.0 OS: Windows 11 Printer: Creality Ender 3 S1 Pro with Sonic Pad

Following these steps:

  1. Navigate to Preferences > Materials
  2. Pick any material in dialog box
  3. Go to Print settings tab in same dialog box, then open "Select settings"

The option to include "Pressure Advance Control" does not exist, even with all "Show all" selected. Note that both Pressure Advance Factor and Pressure Advance Smooth Time are available, which is inconsistent.

I would expect that Pressure Advance Control would be available as a optional Materials setting.

Image

DrWB63 avatar Feb 28 '25 00:02 DrWB63

I think I found the solution to this issue where the Pressure Advance Control checkbox was not visible in Material preferences when also using the Material Settings plugin. A single line needs to be added to klipper_settings.def.json as follows to force a resolve:

"klipper_pressure_advance_enable": {
    "label": "Pressure Advance Control",
    "description": "Enables control of Pressure Advance ...",
    "type": "bool",
    "default_value": false,

    "resolve": "any(extruderValues('klipper_pressure_advance_enable'))",

    "settable_per_mesh": false,
    "settable_per_extruder": false
},

There is a similar missing line for the Enable Firmware Retraction checkbox:

"machine_firmware_retract": {
    "label": "Enable Firmware Retraction",
    "description": "Enables ...",
    "type": "bool",
    "default_value": false,

    "resolve": "any(extruderValues('machine_firmware_retract'))",

    "settable_per_mesh": false,
    "settable_per_extruder": false
},

If I make these changes to klipper_settings.def.json then everything seems to work as expected.

DrWB63 avatar Mar 01 '25 23:03 DrWB63