-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass layer height as variable? #18
Comments
Here, try this. This is Tengers code I modified to be a stand-alone Python script. It will run outside of the slicer with a GUI. Click browse, open your gcode file, and click process to make brick layers. It will output a new file with "[fileName]_modified.gcode" With this, it will automatically find the gcode layer height... no matter what you sliced it to. Change the .txt to .py I am working on some other modifications to the code as well. |
That is awesome!
Having your new code works great standalone. It would be great to simply add it to the post-process script to execute during the send-to-printer phase. |
That will not work. It is a 'post' processor, meaning 'after'. The slicer already made the file. The only way to do it is: |
Drats, would be super cool. Seems like there'd be a way to automate it. i.e. interrupt the "send to printer" phase. |
Technically it's possible if you use environment variables, the official websites of both Slic3r and PrusaSlicer explain how to use them. You'd need to add the following to the script:
|
Hello! I've been doing some digging around the internet and haven't yet found an answer to my question.
This PPS is awesome and is working fantastically on all 3 of my machines - absolutely love it, thank you for the work putting this together and sharing it with us!
Wondering if instead of adding -layerHeight 0.x after the path, I can instead pass through whatever variable the slicer stores as the layer height.
This way I could simply change the layer height in Orca, and it would pass the layer height variable to the python script, instead of me having to remember to change it in both places. I will invariably forget to change it at some point in both spots, looking to fool-proof my process =)
Any help is greatly appreciated, thank you so much!
The text was updated successfully, but these errors were encountered: