Why to set custom extrusion multiplier only for first and last layer?
Hi,
I want to set my extrusion multiplier only for the first and last/top layer to 1.10. In between it should use the value from the filament settings. I tried this with the custom G-code at layer (right top/down slider), but there I can not insert G-Code for the first layer.
I thought somethings like this:
{if layer_num == 0} M221 S110
{elsif layer_num == 1} M221 S100
{elsif layer_num == toplayer(?)} M221 S110
{endif}
Where should I place such a code, in printer or filament settings?
If I type in at a specific layer M221 S100 (custom G-code at layer field), what happens in the next layer? Is the value still valid or will it be overwritten by the filament settings, for example?
Thanks...
Best Answer by Armin:
For who is interested...
Placed in the g-code before layer changed field.
{if layer_num == 0} M221 S110 ; Set the extrusion multiplier to 110% for the first layer {elsif layer_num == (total_layer_count-1)} M221 S110 ; Set the extrusion multiplier to 110% for the last layer {else} M221 S{extrusion_multiplier[0]*100} ; Set the extrusion multiplier to the filament settings {endif}
RE: Why to set custom extrusion multiplier only for first and last layer?
HOW to set custom extrusion multiplier only for first and last layer?
RE:
For who is interested...
Placed in the g-code before layer changed field.
{if layer_num == 0} M221 S110 ; Set the extrusion multiplier to 110% for the first layer {elsif layer_num == (total_layer_count-1)} M221 S110 ; Set the extrusion multiplier to 110% for the last layer {else} M221 S{extrusion_multiplier[0]*100} ; Set the extrusion multiplier to the filament settings {endif}