John SC
Posts: 3
Joined: Mon Oct 14, 2019 5:05 pm

Are these additional variables available?

Hi,

I am trying to use some macros in Klipper, and need several pieces of information to pass from the slicer to the macros. What I am looking for is listed in the gCode file created by S3D in these lines:
; layerHeight,0.30000
; extrusionWidth,0.40000
; makerBotModelMaterial,pla

My macro call looks like this:

print_start EXTRUDER=[extruder0_temperature] BED=[platform0_temperature] LAYER=0.30 FILAMENT=PLA EXTRUSION=0.40

This is needed for parity with Orca and other slicers!

Thanks!
John
S3D-Jason
Posts: 1498
Joined: Sun May 31, 2015 6:01 am

Re: Are these additional variables available?

I'm not sure about the extrusion width, but I know you can get the layer height in many of the scripts using the [current_layer_height] variable.
additivepros
Posts: 13
Joined: Fri Oct 27, 2023 1:04 pm

Re: Are these additional variables available?

Try [bed0_temperature]

Return to “General Discussion and Tips”