524 Commits

Author SHA1 Message Date
HellAholic
c91862f4bb Make the conversion to uppercase optional
- Add the option type bool
- Set to be enabled by default
- Add condition to only convert if bool value is true
2025-03-25 20:33:01 +01:00
HellAholic
2cf13c5e94 Remove extra empty line 2025-03-09 19:30:55 +01:00
HellAholic
b25620826f use helper function
Since the added lines are identical, it can be replaced with a helper function
2025-03-09 19:30:55 +01:00
GregValiant
253d11f84d Update PurgeLinesAndUnload.py
This change adds a setting for "minimum Z height" for the "nail down the string" moves.

Update PurgeLinesAndUnload.py

Bug fix.  The prime blob code didn't account for the retraction at the end.  This adds an 'unretract' to compensate.
2025-03-09 19:30:55 +01:00
HellAholic
be0671ccca
Merge branch 'main' into PurgeLines 2025-02-20 10:30:54 +01:00
GregValiant
436e3e84b8 Create PurgeLinesAndUnload_old.py
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.
2025-02-14 12:52:23 -05:00
HellAholic
26d5afe56c
Merge pull request #19796 from GregValiant/SearchAndReplace
Re-write of Search and Replace
2025-02-14 10:22:51 +01:00
HellAholic
cebdafc548
Make wipe move consistent 2025-02-12 12:42:24 +01:00
GregValiant
5d0d782b8b Update PurgeLinesAndUnload.py
Indents for child settings
2025-02-11 10:27:56 -05:00
GregValiant
5fe1193df1 Update PurgeLinesAndUnload.py
Added purge blob option.
Required changes in some settings to 'self'.
Fixed  'quick_purge_speed' to adjust for 2.85 filament.
2025-02-11 08:43:56 -05:00
Erwan MATHIEU
01fd82e8e5
Merge branch 'main' into fix_qml_py_re 2025-02-11 13:19:50 +01:00
HellAholic
8f14e62809 re-indent the collaterals 2025-02-10 21:32:03 +01:00
HellAholic
3afffbd403 Wipe move consistency for rectangular
- Remove the travel move -> type probably
- Remove the second F in 3 out of 8 wipe moves
2025-02-10 20:56:35 +01:00
HellAholic
573a92bd79 Indentation fix 2025-02-10 20:55:23 +01:00
HellAholic
b421c057a8 Add overwritten part for start_x and start_y set to None 2025-02-10 20:15:22 +01:00
HellAholic
e5723a1088
small fix 2025-02-10 19:44:10 +01:00
GregValiant
6c81c232e1 Update PurgeLinesAndUnload.py
Removed default 1mm border and added "Border Distance" setting.
2025-02-10 12:43:08 -05:00
GregValiant
1dc8dd8a80 Update PurgeLinesAndUnload
Removed the default border of 1mm and added a setting "Border Distance".
2025-02-10 12:40:59 -05:00
HellAholic
1728db9427 Top/Bottom -> Rear/Front
Top -> Rear
Bottom -> Front
2025-02-10 16:57:55 +01:00
GregValiant
94c64a031e Update PurgeLinesAndUnload.py
Changes made per wawanbreton suggestions.
"border distance" setting is not included.
2025-02-10 10:46:05 -05:00
Erwan MATHIEU
80fa6aabc3
Update altered year 2025-02-10 13:38:15 +01:00
Erwan MATHIEU
e1bd4baed2 Adjust settings descriptions 2025-02-10 10:36:44 +01:00
GregValiant
36141b082c Update SearchAndReplace.py
Replaced the complex method of dealing with rafts to something simpler.

Update SearchAndReplace.py

Update
2025-02-07 18:52:20 -05:00
GregValiant
5678c64f18 Update SearchAndReplace.py
Change variable name from cura_app to global_stack.
2025-01-12 10:04:39 -05:00
GregValiant
28f8e2af79 Update PurgeLinesAndUnload.py
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".
2025-01-08 10:22:40 -05:00
HellAholic
e7546031d3 Some cleanup
- variable names updated to reflect their use more clearly
- removed obsolete if/else for move (the length of the list will be always 2)
2025-01-07 23:50:01 +01:00
GregValiant
be509b6696 Update SearchAndReplace.py
Update SearchAndReplace.py

Changed comments.
Revised code below line 170.
Changed 'curaApp' to 'cura_app'
2025-01-07 12:27:34 -05:00
GregValiant
349c5284a9 Update SearchAndReplace.py
Update a description

Update SearchAndReplace.py

Fixed the "descriptions".  Cura didn't like the dashes or backslashes.
2025-01-07 09:24:25 -05:00
GregValiant
8c28eecd91 Update PurgeLinesAndUnload.py
Added consideration for Disallowed Areas and Tool Offsets.
This also includes a lot of variables moved into "self".
2024-12-29 15:54:02 -05:00
HellAholic
703028d00d Adjustment bit for self.start_x, self.start_y 2024-12-26 17:44:09 +01:00
HellAholic
7e4b6a63f7 Remove the temp V2 2024-12-26 17:35:01 +01:00
GregValiant
bb71538aca Merge branch 'PurgeLines' of https://github.com/GregValiant/Cura into PurgeLines 2024-12-26 11:19:27 -05:00
GregValiant
f08873fa35 Update PurgeLinesAndUnload.py
Updated with the combined changes and ready for review.
2024-12-26 11:19:12 -05:00
HellAholic
20847a0b33 Final adjustments to V2
- Add condition to check for self.start_y before appending undefined/non to the gcode
- Move self.start_x and self.start_y def to the init()
2024-12-26 16:54:26 +01:00
HellAholic
e9f1be7b6b Greg's changes 2024-12-26 16:41:07 +01:00
HellAholic
b872610275
comment fix for v2 2024-12-26 12:42:55 +01:00
HellAholic
d80f291dc5 More V2 shenanigans
- 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)
2024-12-26 12:40:06 +01:00
HellAholic
79ec595785 v2 update 2024-12-24 19:21:40 +01:00
HellAholic
3eb6db1a7b Temp v2 2024-12-23 18:14:31 +01:00
GregValiant
60b64d70be Update PurgeLinesAndUnload.py
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.
2024-12-21 09:21:44 -05:00
GregValiant
035ae14eb7 Update PurgeLinesAndUnload.py
Changed 'Execute' procedure per suggestion.
Add 'G10' firmware retraction support to 'Adjust Starting E'.
2024-12-10 18:43:03 -05:00
GregValiant
82336a0616 Create PurgeLinesAndUnload.py
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.
2024-12-08 20:47:16 -05:00
GregValiant
ee61854981 Re-write of Search and Replace
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'
2024-10-23 06:57:10 -04:00
HellAholic
ed6daa3735
Merge pull request #19083 from GregValiant/InsertAtLayerChange
Rewrite - Insert At Layer Change
2024-10-02 14:03:03 +02:00
Erwan MATHIEU
d2b3ca3896 Apply suggested changes 2024-10-02 13:07:45 +02:00
Erwan MATHIEU
e4b4b8e4a4 Remove extra-spaces after units 2024-10-01 15:16:43 +02:00
GregValiant
ffc21403a1 Update TimeLapse.py
Update TimeLapse.py

Update to include a pause before the image is snapped.
2024-09-04 22:01:48 -04:00
David Fries
6e3e3e6742 Use raw strings for regular expressions with invalid escape sequences
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.
2024-08-31 12:11:59 -05:00
GregValiant
dabc3d8032 Rewrite - Insert At Layer Change
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
2024-05-15 20:53:20 -04:00
GregValiant
35775ce3c8 Merge branch 'TIme-Lapse' of https://github.com/GregValiant/Cura into TIme-Lapse 2024-05-14 08:39:46 -04:00