Printer {z_hop} variable takes value from filament[1] if filament zhop is edited before slicing #293

Open
opened 2026-04-05 16:19:37 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Wegerich on 3/16/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.3.2-rc2

Operating System (OS)

Windows

OS Version

11

Additional system information

No response

Printer

MK4S MMU3

How to reproduce

  1. Use a multi-filament printer such as Prusa MMU3 MK4S
  2. Set any zhop value in the printer settings
  3. Set a different value for a filament that is not being used in the print
  4. Add custom gcode to Before_layer_change:
;printer Zhop: {z_hop}
;tool 0 Zhop: {z_hop[0]}
;tool 1 Zhop: {z_hop[1]}
;tool 2 Zhop: {z_hop[2]}
;tool 3 Zhop: {z_hop[3]}
;tool 4 Zhop: {z_hop[4]}
;tool 0 Zhop: {filament_z_hop[0]}
;tool 1 Zhop: {filament_z_hop[1]}
;tool 2 Zhop: {filament_z_hop[2]}
;tool 3 Zhop: {filament_z_hop[3]}
;tool 4 Zhop: {filament_z_hop[4]}
  1. Slice model

Actual results

{z_hop} variable will be changed to match {filament_z_hop[1]}

{z_hop[TOOL]} variables will match the corresponding filament
If you then edit the printer Zhop and re-slice, all the {z_hop[TOOL]} variables will match the printer value only

{filament_z_hop[TOOL]} values always work as expected (So long as the option is set to True)

Expected results

{z_hop} should always reflect the printer setting.
{z_hop[TOOL]} should reflect the filament setting if override is enabled, otherwise the printer setting.

Project file & Debug log uploads

debug_Fri_Mar_13_13_53_40_31820.log - Copy.txt

strange z_hop variable recording.zip

20260316-182703_retspd20_retlen0.6_0.91zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa MK4S HF_5m0s.gcode.txt
20260316-182618_retspd20_retlen0.512_1.2zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa MK4S HF_5m0s.gcode.txt

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

*Originally created by @Wegerich on 3/16/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version 2.3.2-rc2 ### Operating System (OS) Windows ### OS Version 11 ### Additional system information _No response_ ### Printer MK4S MMU3 ### How to reproduce 1. Use a multi-filament printer such as Prusa MMU3 MK4S 2. Set any zhop value in the printer settings 3. Set a different value for a filament that is not being used in the print 4. Add custom gcode to Before_layer_change: ``` ;printer Zhop: {z_hop} ;tool 0 Zhop: {z_hop[0]} ;tool 1 Zhop: {z_hop[1]} ;tool 2 Zhop: {z_hop[2]} ;tool 3 Zhop: {z_hop[3]} ;tool 4 Zhop: {z_hop[4]} ;tool 0 Zhop: {filament_z_hop[0]} ;tool 1 Zhop: {filament_z_hop[1]} ;tool 2 Zhop: {filament_z_hop[2]} ;tool 3 Zhop: {filament_z_hop[3]} ;tool 4 Zhop: {filament_z_hop[4]} ``` 5. Slice model ### Actual results {z_hop} variable will be changed to match {filament_z_hop[1]} `{z_hop[TOOL]}` variables will match the corresponding filament If you then edit the printer Zhop and re-slice, **all** the `{z_hop[TOOL]}` variables will match the printer value only `{filament_z_hop[TOOL]}` values always work as expected (So long as the option is set to True) ### Expected results {z_hop} should always reflect the printer setting. {z_hop[TOOL]} should reflect the filament setting if override is enabled, otherwise the printer setting. ### Project file & Debug log uploads [debug_Fri_Mar_13_13_53_40_31820.log - Copy.txt](https://github.com/user-attachments/files/26033616/debug_Fri_Mar_13_13_53_40_31820.log.-.Copy.txt) [strange z_hop variable recording.zip](https://github.com/user-attachments/files/26033654/strange.z_hop.variable.recording.zip) [20260316-182703_retspd20_retlen0.6_0.91zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa MK4S HF_5m0s.gcode.txt](https://github.com/user-attachments/files/26033591/20260316-182703_retspd20_retlen0.6_0.91zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa.MK4S.HF_5m0s.gcode.txt) [20260316-182618_retspd20_retlen0.512_1.2zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa MK4S HF_5m0s.gcode.txt](https://github.com/user-attachments/files/26033592/20260316-182618_retspd20_retlen0.512_1.2zhop_500acc_LH_0.27mm_Cube_2.50493g_PETG_Prusa.MK4S.HF_5m0s.gcode.txt) ### Checklist of files to include - [x] Log file - [x] Project file ### Anything else? _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#293