Updated 03/02/2022 Fixed issue with PrusaSlicer g-code preview for post processed files (thanks @sarvenn) A new "compiled" version is provided
Updated 26/12/2021
Added a modified version that complies with PrusaSlicer 2.4
This script is not my work, It was shared over ath bigtreetech/BIGTREETECH-TouchScreenFirmware#1238, please read the issue for all relevant information.
The version shared here is my modified version that adds "_btt" to the gcode file name and preserves the original file extension, instead of enforcing a .gcode file extension.
How to use (script version):
Download and install python 3 (3.9.1 at this moment in time), afterwards, install PyQt5, by going to the command line and issuing pip install PyQt5
Next open prusa slicer and add the thumbail generation:
Finaly go to your Print Settings and in Post processing scripts, add the following [python absolute path] [space] [script absolute path] and if any of the paths contain spaces enclose them in "":
Then when saving the gcode, it will be processed by the script that will replace it with a version with the correct thumbnails for our TFT
How to use (standalone version): A compiled (standalone) exe version, using auto-py-to-exe, is also available in the releases, if you use that version, you don't need to install python, pyqt or add the paths to the "Post processing scripts".
First enable the thumbail generation:
Then simply copy the exe to the same folder as prusaslicer.exe or superslicer.exe is on, then on "Post processing scripts", place the following "biqu_convert_new.exe"