prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.55k stars 1.91k forks source link

G-Code Viewer application does not show custom G-Code #8497

Open stefan-am opened 2 years ago

stefan-am commented 2 years ago

Description of the bug

The PrusaSlicer G-Code Viewer does not show custom G-Code (entered in Slicer with RMB> Add another Code) when moving the mouse pointer over the "G" at height 20. So there is an indication that there is some custom Code, but it does not show it to me...

Shape-Box_0.2mm_PETG_MK3S_6h4m.zip

Gcode_viewer

Project file & How to reproduce

Unzip and open the attached example G-Code in the separate G-Code Viewer. Move the mouse over the "G" indication - Custom Code is not shown. Right mouse click does nothing, too.

Checklist of files included above

Version of PrusaSlicer

G-Code Viewer Version 2.5.0-alpha2+win64

Operating system

Windows 10 Home 21H1 Build 19043.1706

Printer model

Prusa i3 MK3S

neophyl commented 2 years ago

It does show it in the gcode listing on the left when you use the bottom slider. I believe you added M220 S80 ;Example custom G-code. Also for your custom gcode to show in the preview you need to tick the Custom Gcode box from the Options dropdown.

But yes the insert icon on the slider doesnt show anything. Personally I wasn't expecting it to in the stand alone viewer. I would in the full 3mf project though.

stefan-am commented 2 years ago

Yes, using the bottom slider and looking in the listing on the left is a possible workaround. But being used to the slicer, i expected the custom code to pop up at the mouse pointer, when moving over the "G" indicator, as it works in the slicer... For consistency, it should work this way, in my opinion.