Fix the issue of the prime line being generated outside of the print bed in OrcaSlicer when using the Flsun Super Racer.
When slicing with OrcaSlicer for the Flsun Super Racer, the default G-code configuration may result in a prime line placed outside the printable area. This script provides a post-processing solution to adjust the prime line's location within the valid print bed, ensuring smooth operation.
This guide is specifically designed for macOS users leveraging the macOS Terminal to run the script.
- Automatically detects and replaces the incorrect prime line routine in the G-code.
- Inserts a new prime line routine tailored for the Flsun Super Racer.
- Supports easy customization of the replacement G-code.
- Provides detailed feedback in the terminal, including the number of lines replaced.
- macOS or other os with Terminal access.
- Python 3.x installed.
You can install Python 3 via Homebrew:
brew install python3
- OrcaSlicer installed and configured for the Flsun Super Racer.
Steps for Mac, commands may be slightly different on other operating systems
Download the script directly from this repository:
git clone https://github.com/Krosko/flsun-prime-line-fix.git
cd flsun-prime-line-fix
Alternatively, download the post_process.py
file from the repository and save it to a convenient location.
- Open OrcaSlicer and load your 3D model.
- Slice the model and save the resulting
.gcode
file to a known location.
- Open Terminal on macOS.
- Navigate to the folder containing the script:
cd /path/to/folder/containing/script
- Run the script with the following command, replacing
/path/to/file/filename.gcode
with the full path to your.gcode
file:python3 post_process.py -f /path/to/file/filename.gcode
-t /path/to/target/location/filename.gcode
can be added behind the command to define the target location of the processed.gcode
file
- If successful, you will see a message like:
File updated successfully.
Number of lines replaced: X
Run python3 post_process.py --help
for informations about the -f
and -t
flags
- Add the path to python and the executable script to the Post-processing Scripts section of the OrcaSlicer
- Transfer the processed
.gcode
file to your printer via SD card or another method. - Start your print and verify that the prime line is now correctly placed within the print bed.
If you'd like to modify the new prime line routine, you can edit the new_content
variable in the post_process.py
script. Ensure the G-code commands are compatible with the Flsun Super Racer and OrcaSlicer.
We welcome contributions to improve the script or documentation! Feel free to open an issue or submit a pull request.
If you encounter any issues or have questions, please open an issue in this repository.
Happy Printing! 🎉