Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-hop only on 1st layer #15280

Open
lgstern opened this issue Apr 18, 2023 · 12 comments
Open

z-hop only on 1st layer #15280

lgstern opened this issue Apr 18, 2023 · 12 comments
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: New Feature Adding some entirely new functionality.

Comments

@lgstern
Copy link

lgstern commented Apr 18, 2023

Is your feature request related to a problem?

When printing TPU the nozzle leaves a trail between models on the bed. It is not a problem after the 1st layer.

Describe the solution you'd like

Being able to enable z-hop just for the 1st layer

Describe alternatives you've considered

Extra retraction.
Could clog an all metal hot end. Also with TPU it might not happen fast enough

Affected users and/or printers

Those printing multiple models with TPU

Additional information & file uploads

No response

@lgstern lgstern added Status: Triage This ticket requires input from someone of the Cura team Type: New Feature Adding some entirely new functionality. labels Apr 18, 2023
@GregValiant
Copy link
Collaborator

Here. You get to be a lab rat.
Unzip the folder and copy "AlterZhops.py" to "C:\Program Files\UltiMaker Cura 5.3.0\share\cura\plugins\PostProcessingPlugin\scripts"

It will be available in Cura under "Extensions/Post Processors/Modifiy Gcode" and then select it from the list.
Set the New Zhop Height to "0" and the layer range from "2" to "-1" (-1 means the whole file). It will then set all the Z-Hops above the first layer to zero hop height and negate their effect.
AlterZhops.zip

I have a pull request in for this but there has been no action on it yet.

@lgstern
Copy link
Author

lgstern commented Apr 20, 2023 via email

@sleewok
Copy link

sleewok commented Aug 9, 2023

This is great. Exactly what I have been looking for. Depending on how small the part is on the initial layer z-hop can be really useful to avoid pulling the part up on travels. However, after the first few layers there is really no need for it. I'll test this out and report back.

@sleewok
Copy link

sleewok commented Aug 9, 2023

Here. You get to be a lab rat. Unzip the folder and copy "AlterZhops.py" to "C:\Program Files\UltiMaker Cura 5.3.0\share\cura\plugins\PostProcessingPlugin\scripts"

It will be available in Cura under "Extensions/Post Processors/Modifiy Gcode" and then select it from the list. Set the New Zhop Height to "0" and the layer range from "2" to "-1" (-1 means the whole file). It will then set all the Z-Hops above the first layer to zero hop height and negate their effect. AlterZhops.zip

I have a pull request in for this but there has been no action on it yet.

Can you clarify the settings a bit? How do these settings relate to the setting in Cura print settings?

With the following settings would z-hop be applied to only the first 3 layers?
Example setup:

  • Z-hop off in print settings
  • Plugin z-hop height set to: 0.3mm
  • from start of layer: 1
  • to end of layer: 3

Thanks!

@GregValiant
Copy link
Collaborator

The plugin sets the Z hop height to what you enter in the plugin setting and for the layer range you select. So you must have Z-hops enabled in Cura and at the height you want. It doesn't add code or delete code, just changes the hop height.
The plugin settings would be:
Z-Hop Height: 0
From start of layer: 4
to End Layer: -1

Layers 1, 2, and 3 would have z-hops and starting with layer 4 the rest of the hops in the file would be set to "0".

@sleewok
Copy link

sleewok commented Aug 10, 2023

The plugin sets the Z hop height to what you enter in the plugin setting and for the layer range you select. So you must have Z-hops enabled in Cura and at the height you want. It doesn't add code or delete code, just changes the hop height. The plugin settings would be: Z-Hop Height: 0 From start of layer: 4 to End Layer: -1

Layers 1, 2, and 3 would have z-hops and starting with layer 4 the rest of the hops in the file would be set to "0".

Thanks for clarifying. I tested and it works perfectly. Great work!

@JesseJamb
Copy link

Thank you

@Malte-G
Copy link

Malte-G commented Mar 28, 2024

Thanks for this Plugin its really annoying to have Z Hop turned on throughout an entire print when you only need it for an inlay for the first 2-3 layers.

@GregValiant
Copy link
Collaborator

It was this model that got me to thinking.
image
When the horizontal hole was closing up - the feather edges warped upward and caused the nozzle to really smack into them. I needed z-hop at 1mm to clear the warped edges. Z-hop wasn't required above or below and the script came into being.
And now you know the rest of the story.

@Cysign
Copy link

Cysign commented Aug 21, 2024

Wow, this could help a lot. Is this also compatible with newer versions?
Any chance we can ask Ultimaker to make it a stock feature of Cura? Is there a feature-request + vote system available?

An option "z-hop until layer-height __mm" would be perfect!

@GregValiant
Copy link
Collaborator

Yes, it works with everything from 4.13.1 up to 5.8.0. There isn't anything "version specific" in it.
The Cura team was busy with other things and new post-processors have not been a priority. I've got a lot like 'Alter Z-hops' that sort of take care of niche situations. I keep my Github page up to date HERE.

@GregValiant
Copy link
Collaborator

GregValiant commented Sep 15, 2024

Since you folks have seemed interested I have put together another Z-hop script "Z-hops for Travel Moves".

image

It is independent of the Cura settings so you can have Z-hops on or off in Cura.
It is a slower running script since it must check the length of every travel move in a file to determine if there should be a hop.
Looking at the settings in the screenshot: the script is active, it will act on the initial layer through the top layer and any travel over 10mm will invoke a 0.50 Z-hop. The script is on my Git page HERE.
At some point I might try to combine the two scripts but it might turn out to be an "either, or" thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: New Feature Adding some entirely new functionality.
Projects
None yet
Development

No branches or pull requests

6 participants