feat: Dynamic nozzle color in G-code preview based on filament #1108

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

Originally created by @tome9111991 on 1/11/2026

Description

I thought it would be useful if the nozzle 3D model in the G-code preview reflected the color of the currently used filament.
This means that even in the preview, when you are in "Line Type" mode, you can see which filament is currently being used.

Without the PR, it should always look like this:
Screenshot 2026-01-11 095556

With the PR setting, the nozzle color changes depending on the filament color:
Screenshot 2026-01-11 095615

in Line Typ:
linetyp

Filament:
filament

*Originally created by @tome9111991 on 1/11/2026* # Description I thought it would be useful if the nozzle 3D model in the G-code preview reflected the color of the currently used filament. This means that even in the preview, when you are in "Line Type" mode, you can see which filament is currently being used. Without the PR, it should always look like this: <img width="938" height="665" alt="Screenshot 2026-01-11 095556" src="https://github.com/user-attachments/assets/e185d709-e2ca-4967-8b6e-06ff38cc724d" /> With the PR setting, the nozzle color changes depending on the filament color: <img width="905" height="669" alt="Screenshot 2026-01-11 095615" src="https://github.com/user-attachments/assets/c697366b-d69b-4cdb-b3eb-acfc8d48f603" /> in Line Typ: ![linetyp](https://github.com/user-attachments/assets/dd64334b-1fbd-4dad-a9ca-694df44b4cae) Filament: ![filament](https://github.com/user-attachments/assets/15de257a-68f3-42f6-ae82-b5366b726fcd)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#1108