Duplicate (import/export) Processing Scripts#21501
Duplicate (import/export) Processing Scripts#21501Ken Davidson (kenjdavidson) wants to merge 4 commits into
Conversation
|
I can resolve or remove the tests lost likely without running it locally. I noticed that they were added but it isn't a practice in that file tests. |
|
I have a PR 21327 in for PauseAtHeight (cleverly renamed "Pause At Layer or Height".
|
This will definitely make the layer height repetition way better! The other main issues that I tried to sneak in is the import/export/clear. With the script configuration tied to the printer config, isn't optimal for my workflow. But having the ability export a yml file of the configuration along side my 3mf (and conversely import it back with the same 3mf) would save even the time of applying even this plus a couple other custom scripts I have been using. Sadly day 3 of attempting to get the local environment working has led too... alcohol and me thinking that it'll just never happen :( |
c33e910 to
a82cd6c
Compare
Hey, appreciate you taking a peak. I gave up trying to get this working on my windows machine, this weekends goal was getting it going on my Mac (maybe friendlier). Super weird, it's using the standard hamburger (found while looking at current icons) If I get it up and running this weekend I'll take a peak. |
|
Was super lazy over the weekend, but I did run the request through Copilot and updated the PR. I didn't use your zip, but it looks like the changes are relatively the same.
|
a7eacd3 to
a88cc46
Compare
* Initial plan * Add post processing script duplication feature - Add DuplicateScript.svg icon (copy of MeshTypeIntersect.svg) - Add duplicateScriptByIndex() method to PostProcessingPlugin - Add duplicate button in QML (left of Move Down button) - Add tests for duplicateScriptByIndex Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> * Fix missing type annotations in test helpers and functions Add mypy type annotations to the new test helper functions and test functions introduced for duplicateScriptByIndex, as required by the Python code conventions (all new code MUST be typed). Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> * Remove obvious comments that restate code intent Per coding conventions, comments that simply rephrase the code must be removed. Deleted docstrings from duplicateScriptByIndex, test helper functions, and all test functions added for script duplication. Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
* Initial plan * Add export, import, and clear functionality for Post Processing Scripts Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> * Fix code convention violations: use .format() for log messages and add type hints Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> * Remove obvious comments that restate the code Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> * Fix import ordering in TestPostProcessingPlugin.py Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com> Co-authored-by: Ken Davidson <ken.j.davidson@live.ca>
Agent-Logs-Url: https://github.com/kenjdavidson/Cura/sessions/fe1996b9-2bc7-4519-abb0-e7ebfcb69342 Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
a88cc46 to
af83280
Compare








Description
Added the ability to duplicate Processing Scripts and their content.
Also snuck in the ability to export/import the script configuration, instead of having to do this from scratch. Just a nicety to have since I have to setup a bunch of pauses at different layers for different prints in order to change filament.
Type of change
How Has This Been Tested?
I'll be completely honest, ran this through Copilot and let Jesus take the wheel I've been trying to get Cura running locally for the last two days with no luck, so at this point hopefully someone else can verify it or just close it. I appreciate how ridiculous seems, but even following the instructions I just can't get things running locally (keep getting stuck up on UM and pyArcus versioning).
Test Configuration:
Windows 11
Checklist:
Verified that Copilot had all the best practices and contributing content resolved.