Update PurgeLinesAndUnload.py
Added 2 settings so the user can dictate where the prime blob will be.
"Blob Location X" and "Blob Location Y".
Delete PurgeLinesAndUnload_old.py
I'm not sure how I do these things.
Change the comment line location from the end of data[1] to the first line of the "moves".
Update PurgeLinesAndUnload.py
Move the "start from" comment from the end of data[1] to the first line of the "moves" list.
Update PurgeLinesAndUnload.py
Change the comment line location from the end of data[1] to the first line of the "moves".
- Rename the start location to end purge location to match with what it represents
- Added location and position enums
- Rewrite the _get_adjustment_lines function as _move_to_location (generic)
- Replace goto_str with a position tuple for consistency and error prevention (typo prevention)
Added a "quick purge" option before the actual unload to insure the filament is free to pull back.
Made adjustments for "Machine Disallowed Areas".
Added some comments.
Re-ordered some of the code.
This script has 4 options.
Add Purge Lines will draw lines left, right, top, or bottom of the build plate and either fill length of half length. If a print takes up the entire width then the purge lines could be moved to the bottom.
Added some options:
- Replace the 'First Instance Only' of the Search term.
- Limit the Search to a layer range.
- 'Ignore StartUp G-code' and 'Ignore Ending G-code'
If "T(\d*)" was "T(\n*)" it would search for newlines. There isn't
any such \d escape character.
It should be "T(\\d*)" or r"T(\d*)" going with the latter, to be
easier to read and be consistent with other Cura usage.
Start python with -Wd or for python 3.12 will raise a SyntaxWarning.
This is an extensive re-do of the script.
# Added an 'Enable' setting
# Added support for multi-line insertions (comma delimited)
# Added insertions in a range of layers or a single insertion at a layer. Numbers are consistent with the Cura Preview (base1)
# Added frequency of Insertion (once only, every layer, every 2nd, 3rd, 5th, 10th, 25th, 50th, 100th)
# Added support for 'One at a Time' print sequence
An update to the script.
- Added insertion frequency
- Added support for relative extrusion
- Retract is now a boolean and the settings come from Cura. There won't be a retraction if there is already a retraction.