Skip to content

Conversation

@novamxd
Copy link
Contributor

@novamxd novamxd commented Jan 20, 2026

Description

Type of change

  • [ X ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

I pulled the file given by GhostKeeper (here) and validated that it properly targets the expected heights. Also tested ranges with this file.

I also pulled the 25x25 Cube given by AbeFM (here) and that the fan speed is properly switched back to 30% after the desired layer.

Test Configuration:

  • Operating System: Windows 11. Cura 5.11.

Checklist:

  • [ Probably? ] My code follows the style guidelines of this project as described in UltiMaker Meta and Cura QML best practices
  • [ ✅ ] I have read the Contribution guide
  • [ ✅ ] I have commented my code, particularly in hard-to-understand areas
  • [ ✅ ] I have uploaded any files required to test this change

25x25Cube (1).zip
change_at_z_temperature (1).zip

…not properly apply (or change back) certain values. Z targeting now works by determining the target layer based on the minimum Z for a given layer. Added support for layer and Z ranges. Added support for reading layer height from project settings.

Kept backwards compatibility with older configs of ChangeAtZ.
@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Jan 20, 2026
@novamxd novamxd changed the title Fixed issues #8574 and #8886 where ChangeAtZ would not properly apply… ChangeAtZ - Fix #8574 and #8886 Jan 20, 2026
@github-actions
Copy link
Contributor

Test Results

24 518 tests  ±0   24 516 ✅ ±0   50s ⏱️ -1s
     1 suites ±0        2 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 4a7bde4. ± Comparison against base commit e04abef.

@novamxd novamxd marked this pull request as ready for review January 20, 2026 04:42
@GregValiant
Copy link
Collaborator

@novamxd could you take a look at the current "TweakAtZ". The thought was to obsolete "Change At Z" in due time. It was left in Cura as project files might include it.
I have a PR in for a change to TweakAtZ that enables support for One-at-a-Time print sequence. See #21209 .

Tweak at Z currently has "Start/End layers" and "Start/End heights. If you could see if your changes can apply to Tweak At Z it would be helpful.

@novamxd
Copy link
Contributor Author

novamxd commented Jan 27, 2026

@novamxd could you take a look at the current "TweakAtZ". The thought was to obsolete "Change At Z" in due time. It was left in Cura as project files might include it. I have a PR in for a change to TweakAtZ that enables support for One-at-a-Time print sequence. See #21209 .

Tweak at Z currently has "Start/End layers" and "Start/End heights. If you could see if your changes can apply to Tweak At Z it would be helpful.

Hey @GregValiant

I already saw TweakAtZ. Personally I'm disappointed it exists and is the reason I decided to push my changes through.

There is and was nothing preventing you from updating the existing ChangeAtZ plugin to support the new features without breaking backwards compatibility, and yet you chose otherwise. Now customers of Cura are left with old projects that won't work right requiring a migration and any existing tutorials or documentation now invalid.

This was a terrible decision, in my opinion.

If anything I will slowly port the TweakAtZ functions missing from ChangeAtZ into ChangeAtZ, making TweakAtZ no longer required.

I hope this clarifies!

@GregValiant
Copy link
Collaborator

I started out updating Change at Z but when I got finished it was very different. Tweak at Z has the same (I think) functionality, but it is 700 lines of code shorter and it is WAY faster.

I thought one of the problems with Change At Z was the way speed changes were handled. Using M220 affects any speed. I went a different way and adjusted the individual speed "F" parameters in the Gcode. That allows Print, Travel, Retract/Prime, and Z-hop speeds to be handled separately. The fan commands were no longer needed as "Advanced Cooling Fan Control" covered that.
The addition of the "Start and End" Layer and Height (rather than "This Layer" or "All Layers") was also a large change.

The settings for Change At Z just didn't fit well anymore and a project that called Change at Z could well have had "unexpected consequences".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Community Contribution 👑 Community Contribution PR's

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants