Broken nozzle_type placeholder #192

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

Originally created by @Flipqy777 on 3/23/2026

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.3.2

Operating System (OS)

Windows

OS Version

WIndows 11

Additional system information

No response

Printer

Custom Anycubic i3 Mega-S (yet, any printer is probably affected)

How to reproduce

  1. Edit printer preset
  2. Edit machine start G-code
  3. Add nozzle type to start G-code, for instance :

NOZZLE_MATERIAL="{nozzle_type}"

  1. Save
  2. Slice

Actual results

There's an error dialog when slicing :

Referencing a vector variable when scalar is expected

It "expects" some kind of array to be provided. As a result, instead of having a string for nozzle material, we now have an integer since nozzle_type[current_extruder] always outputs 1 as value (at least for me), whereas it should output "brass" or "hardened_steel" or whatever.

It also breaks the filament filtering for people who, like me, disallow abrasive filaments to be shown if a printer profile doesn't use a hardened nozzle.

Image
Image
Image
Image
Image

Expected results

nozzle_type placeholder should, like in previous versions, output a string, not an enum. Or, if it has to be an enum, nozzle_type[current_extruder] should output a string matching the nozzle material of the current or initial extruder (depending on whether initial_extruder or current_extruder is used) .

Project file & Debug log uploads

MGN12_25mm_Block.zip
debug_Mon_Mar_23_20_26_30_40492.log

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

*Originally created by @Flipqy777 on 3/23/2026* ### Is there an existing issue for this problem? - [x] I have searched the existing issues ### OrcaSlicer Version 2.3.2 ### Operating System (OS) Windows ### OS Version WIndows 11 ### Additional system information _No response_ ### Printer Custom Anycubic i3 Mega-S (yet, any printer is probably affected) ### How to reproduce 1. Edit printer preset 2. Edit machine start G-code 3. Add nozzle type to start G-code, for instance : > NOZZLE_MATERIAL="{nozzle_type}" 4. Save 5. Slice ### Actual results There's an error dialog when slicing : > Referencing a vector variable when scalar is expected It "expects" some kind of _array_ to be provided. As a result, instead of having a string for nozzle material, we now have an integer since _nozzle_type[current_extruder]_ always outputs **1** as value (at least for me), whereas it should output "_brass_" or "_hardened_steel_" or whatever. It also breaks the filament filtering for people who, like me, disallow abrasive filaments to be shown if a printer profile doesn't use a hardened nozzle. ![Image](https://github.com/user-attachments/assets/9a6e5b07-1f1c-4043-9456-c6d6a7f336fe) ![Image](https://github.com/user-attachments/assets/152952e6-3f46-4e3b-9f19-8e52896f2af9) ![Image](https://github.com/user-attachments/assets/5f60c4fb-be8e-43cf-a464-a5a85a2dce76) ![Image](https://github.com/user-attachments/assets/a414e5be-87fd-4dad-bae2-481e67ad96d9) ![Image](https://github.com/user-attachments/assets/2951e010-bb58-450e-abe9-b536a3dd61d4) ### Expected results _nozzle_type_ placeholder should, like in previous versions, output a _string_, not an _enum_. Or, if it has to be an _enum_, _nozzle_type[current_extruder]_ should output a _string_ matching the nozzle material of the current or initial extruder (depending on whether _initial_extruder_ or _current_extruder_ is used) . ### Project file & Debug log uploads [MGN12_25mm_Block.zip](https://github.com/user-attachments/files/26194341/MGN12_25mm_Block.zip) [debug_Mon_Mar_23_20_26_30_40492.log](https://github.com/user-attachments/files/26194383/debug_Mon_Mar_23_20_26_30_40492.log) ### 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#192