Skip to content

Settings values replacements not working when in a single line (for Klipper Macro) when using extruder indexing #20183

@seth995

Description

@seth995

Cura Version

5.9

Operating System

MacOS Sequoia

Printer

custom w/ klipper

Reproduction steps

File has 2 parts, temp for extruder0 is 200, temp for extruder1 is 240, Bed temp is 70

add start gcode in single line:
START_PRINT EXTRUDER={extruders_enabled_count} EXTRUDER1=1 EXTRUDER_TEMP={material_print_temperature, 0} EXTRUDER1_TEMP={material_print_temperature, 1} BED_TEMP={material_bed_temperature}

When separated as such each value comes through as expected:
START_PRINT
EXTRUDER={extruders_enabled_count}
EXTRUDER1=1
EXTRUDER_TEMP={material_print_temperature, 0}
EXTRUDER1_TEMP={material_print_temperature, 1}
BED_TEMP={material_bed_temperature}

Actual results

Values in produced Gcode from single line is :
START_PRINT EXTRUDER=2 EXTRUDER1=1 EXTRUDER_TEMP=210

values in produced Gcode from separated line is:
START_PRINT
EXTRUDER=2
EXTRUDER1=1
EXTRUDER_TEMP=200
EXTRUDER1_TEMP=240
BED_TEMP=70

Expected results

Values should be
START_PRINT EXTRUDER=2 EXTRUDER1=1 EXTRUDER_TEMP=200 EXTRUDER1_TEMP=240 BED_TEMP=70

Add your .zip and screenshots here ⬇️

CURA5_9_Bug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis ticket requires input from someone of the Cura teamType: BugThe code does not produce the intended behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions