-
-
Notifications
You must be signed in to change notification settings - Fork 70
Gcode previews (Beta)
- Python
- Cura or PrusaSlicer
- Alex's Firmware v1.3.5.1 Beta 4 or later (No display flashing required if you are already running Alex's firmware or JyersUI)
- Slicer Post-processing script
- Save the script named Cura_JPEG_Preview.py to your computer.
- Open Cura.
- Click Help -> Show Configuration Folder.
- Move
Cura_JPEG_Preview.py
to the scripts folder inside Cura Configuration Folder. - Restart Cura.
- Click on Extensions -> Post Processing -> Modify G-code.
- Click "Add a script", then select "Create JPEG preview" from the list.
- Click Close.
- Slice and save the gcode file to your SD card as usual.
- Update the firmware on your printer and enable thumbnails in Control -> Visual -> Show file thumbnails
-
Save the script named
PrusaSlicer_JPEG_Preview.py
to your computer. It's better to save it in a path that doesn't contain spaces. -
Open PrusaSlicer.
-
Go to Printer Settings -> General -> Firmware -> G-code thumbnails and write
50x50, 217x217
. -
Go to Print Settings -> Output options -> Post-processing:
4a. Windows:
Write the location where you installed Python.exe and the location where you saved your script. eg."C:\Users\Alex\AppData\Local\Programs\Python\Python39\Python.exe" "C:\Users\Alex\Documents\PrusaSlicer_JPEG_Preview.py";
4b. macOS/Linux:
Write the location where you saved your script.
eg."/Users/alex/Documents/PrusaSlicer_JPEG_Preview.py";
-
Slice and save the gcode file to your SD card as usual.
-
Update the firmware on your printer and enable thumbnails in Control -> Visual -> Show file thumbnails
Run python -c "import os, sys; print(os.path.dirname(sys.executable))"
on the command line and it will show you the folder
Save the script on a path that doesn't contain spaces. Try removing the quotes too.