[DRAFT] feat: Add sliced preview thumbnail generation for G-code exports #144

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

Originally created by @eduard-sukharev on 3/26/2026

Description

This PR adds a new feature that allows generating thumbnails from sliced toolpaths (actual G-code moves) instead of the 3D model preview. This is useful with multi-color prints on printers with thumbnail preview on their screen.

image

Changes:

  • Added thumbnails_source config option (3D Model/Sliced Preview) in Printer Settings > Basic Information > Advanced
  • When set to "Sliced Preview", thumbnails are generated from actual toolpaths with filament colors
  • Falls back to "3D Model" rendering when slice result is unavailable

Tests

Tested by exporting G-code with "Sliced Preview" thumbnail source selected. Thumbnail data is included in G-code file header.


Disclaimer: I am not a C++ engineer and the whole feature was created using AI tools. Thorough review is needed and any advice to refactoring are welcome.

*Originally created by @eduard-sukharev on 3/26/2026* # Description This PR adds a new feature that allows generating thumbnails from sliced toolpaths (actual G-code moves) instead of the 3D model preview. This is useful with multi-color prints on printers with thumbnail preview on their screen. ![image](https://github.com/user-attachments/assets/18e224b9-93d5-4aa9-a86f-6afe09c4082b) ## Changes: - Added `thumbnails_source` config option (`3D Model`/`Sliced Preview`) in `Printer Settings` > `Basic Information` > `Advanced` - When set to "Sliced Preview", thumbnails are generated from actual toolpaths with filament colors - Falls back to "3D Model" rendering when slice result is unavailable ## Tests Tested by exporting G-code with "Sliced Preview" thumbnail source selected. Thumbnail data is included in G-code file header. --- **Disclaimer:** I am not a C++ engineer and the whole feature was created using AI tools. Thorough review is needed and any advice to refactoring are welcome.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#144