intentionally different heights for even and odd layers
 
Benachrichtigungen
Alles löschen

intentionally different heights for even and odd layers  

  RSS
Gromis
(@gromis)
Active Member
intentionally different heights for even and odd layers

Hello everyone,

Is it possible in our software to select one constant layer height for even and other one for odd layers (ex. 0.48mm  and 0.52mm)?
If so, where?
If not, can I easily add the appropriate code to add such functionality?

Veröffentlicht : 10/11/2023 10:34 am
Diem
 Diem
(@diem)
Illustrious Member

I don't see an easy way to do it in the slicer; it should be possible to edit the gcode programmatically.

The layer changes are commented in the gcode, so easy to find, and the Z value is there to be seen.

So finding the place for the change(s) is easy and a simple conditional can decide which settings are required - I would slice, nominally, for an intermediate layer height and tweak up or down according to layer...

BUT

Just changing the layer height is not enough, at least the extrusion rate will have to be changed too and possibly other parameters depending on case.

Cheerio,

Veröffentlicht : 10/11/2023 5:00 pm
Gromis
(@gromis)
Active Member
Themenstarter answered:
RE: intentionally different heights for even and odd layers

That's sad, because it would be useful if the dimensions every 0.5mm or 0.1mm mattered.

Applies to printers where you can rely on greater stability with subsequent stepper motor steps of 0.04 mm in height.

About "edit the gcode programmatically" it is almost impossible, because of different dimensions in x and y of every layer (this varies in shapes other than perpendicular to the table. depending on where the layer is cut). Because of this it is simple to scale everything in gcode in x and y, but not with z.

Thank you 🙂

Veröffentlicht : 11/11/2023 12:44 pm
Diem
 Diem
(@diem)
Illustrious Member

Have you tried editing gcode?  It's simpler than many people think - just a huge task as a typical print may be hundreds of thousands of lines of text.

Search through a gcode for ';LAYER_CHANGE' and you will see how it works.

Applies to printers where you can rely on greater stability with subsequent stepper motor steps of 0.04 mm in height.

Not such a common poblem these days, gearing and microstepping tend to be pretty stable.

Cheerio,

Veröffentlicht : 11/11/2023 11:17 pm
Gromis
(@gromis)
Active Member
Themenstarter answered:
RE: intentionally different heights for even and odd layers

"Have you tried editing gcode?"
I do this with my python scripts every time I want to print from ABS with gyroid infill on my old Up Mini.

'Search through a gcode for ';LAYER_CHANGE' and you will see how it works"

Have you read my answer? I wrote that changing Prusaslicer is much easier than changing the already generated gcode, because when we increase or decrease the layer height, we deal with a different layer shape. There is no problem only if it is a solid with walls perpendicular to the bed. Try to understand.

Veröffentlicht : 12/11/2023 12:52 am
Diem
 Diem
(@diem)
Illustrious Member

when we increase or decrease the layer height, we deal with a different layer shape.

Of course, but if you slice at the intermediate value then tweak up and down alternately you are adding no more error than a slight harmonic at twice the sliced layer height.  You might impair overhangs a little but otherwise it will be barely perceptible.  Your example suggests you are using large nozzles so this will be lost in the layer lines.

Cheerio,

Veröffentlicht : 12/11/2023 4:35 pm
Gromis
(@gromis)
Active Member
Themenstarter answered:
RE: intentionally different heights for even and odd layers

Thank you for your help.
I'm just printing the first example. Layers 0.08mm and 0.12mm high. I struggled a bit to find the things I needed on my own and it's not a pretty solution at all. I downloaded the sources for the current version of Prusaslicer with Git and after many stupid changes and compilations it now generates what I wanted.
I think it's a pity that my post was posted here from the English part of "General discussion, announcements and releases", because I did not receive help regarding the optimal software change.

Veröffentlicht : 14/11/2023 7:58 pm
3Delight
(@3delight)
Moderator Moderator
RE: intentionally different heights for even and odd layers

I don't know why it was moved from the English Language section of the forum, but I've moved it back.  It does however belong in the PrusaSlicer section as the General Discussion section is not for asking for help with problems...

Veröffentlicht : 14/11/2023 8:26 pm
Gromis
(@gromis)
Active Member
Themenstarter answered:
RE: intentionally different heights for even and odd layers

OK. Thank you for this and new user of every forum and group is sometimes "stupid" 🙂

Veröffentlicht : 15/11/2023 6:33 am
Teilen: