Remco Burema
cd73befc06
Merge pull request #15883 from GregValiant/PostProcPlugin
...
Update PostProcessingPlugin.py
2023-10-04 13:41:16 +02:00
MariMakes
596b3930b6
Align Licences to LGPLv3
...
As discussed in https://github.com/Ultimaker/Cura/issues/15731 , we should align these licences under the LGPLv3 because they fall under the Cura umbrella.
2023-08-15 14:01:22 +02:00
Jelle Spijker
56b8205ce0
Revert "Fix wrong licenses"
...
This reverts commit 8b8e96429339f7543c7cd0f50c710a3539b74258.
2023-07-23 17:48:11 +02:00
MariMakes
8b8e964293
Fix wrong licenses
...
These seem to be wrong by accident. Let's update them to reflect the rest of Cura which falls under the LGPLv3 or higher.
2023-07-21 11:34:02 +02:00
GregValiant
398556707f
Update PostProcessingPlugin.py
...
Add all the active Post Processor names to the gcode.
2023-06-23 13:36:27 -04:00
Aldo Hoeben
1924d8c1b0
Continue if there is no scripts folder inside a resource folder
...
Co-authored-by: Casper Lamboo <casperlamboo@gmail.com>
2023-04-15 17:44:09 +02:00
fieldOfView
8560a9b57c
Stop postprocessing plugin creating unnecessary script folders
...
The idea is to only create scripts in the configuration folder, not in all plugins that register their own resource folder.
2023-03-24 15:14:48 +01:00
Ghostkeeper
c7d7dd11d1
Merge branch 'master' into PyQt6_upgrade
...
Conflicts:
cura/PlatformPhysics.py -> Removed shapely on master, while QTimer import got updated to Qt6.
plugins/Toolbox -> Entire folder is deleted in master, but it was updated to Qt6 here. This can all be removed.
2022-02-21 11:52:28 +01:00
Jaime van Kessel
c70c312286
Fix check if spec in postprocessing was None
2022-02-01 13:41:33 +01:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
...
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
fieldOfView
d790de8706
Fix loading scripts from all registered resource paths
2021-01-19 13:55:02 +01:00
Ghostkeeper
87eca6f46a
Raise error if there is a syntax error in stored post-processing scripts
...
Instead of just crashing the entire application.
Fixes Sentry issue CURA-19W.
2020-10-05 17:59:25 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Nino van Hooff
a4fe3d7685
Convert doxygen to rst for POS, MonitorStage, PostProcessing
2020-05-08 16:28:07 +02:00
Remco Burema
aaee651369
Fix comment.
...
a smaller part of CURA-7404
2020-04-28 13:28:02 +02:00
Remco Burema
242e0d403e
Clean pycache for scripts as well.
2020-04-28 12:11:55 +02:00
Nino van Hooff
ddd7d15287
Attempt to appease mypy
2020-03-26 09:45:26 +01:00
Nino van Hooff
3bb3b69082
Attempt to appease mypy
2020-03-25 17:32:41 +01:00
Nino van Hooff
92f278acc8
Change trusted scripts path from resources to plugin/scripts
...
CURA-7319
2020-03-25 16:54:43 +01:00
Jaime van Kessel
d5b58cf3b4
Add missing typing
2020-03-25 11:47:38 +01:00
Nino van Hooff
5b045f89b1
Finish postprocessing script signature checking
...
CURA-7319
2020-03-24 16:24:24 +01:00
Remco Burema
935c71edda
Fix name/file-location oops.
2020-01-17 17:25:00 +01:00
Remco Burema
fe2098376f
Prepare PostProcessingPlugin for security.
2020-01-17 17:15:37 +01:00
Jaime van Kessel
523b4e96a8
Ensure that post processing scripts are correctly reloaded on project loading
...
Previously it would not re load post processing plugins if it was updating an existing machine
Fixes #6881
2020-01-07 10:45:57 +01:00
Jaime van Kessel
5c33277d9a
Correctly reset the script list on machine change
...
Fixes #5747
2019-05-20 10:46:47 +02:00
Lipu Fei
dd19d7d1a9
Fix typing
2019-04-03 08:25:17 +00:00
Jaime van Kessel
d8c430abf6
Fix typing
2018-11-27 17:54:53 +01:00
Ghostkeeper
163f102dda
Make extension menu items translatable
...
If these extension plug-ins don't set their menu names, the plug-in name is used as the menu name. The plug-in names are not translated, so this appears as an untranslated string then.
2018-11-15 09:38:14 +01:00
Jaime van Kessel
adf8285d20
Typing fixes
...
Since I was stupid enough to touch it, I was also forced to boyscout the code.
2018-10-03 16:36:58 +02:00
Jaime van Kessel
2e529452dd
Moved the actual adding of containers by script to initialize
...
This ensures that when loading scripts (and checking they are valid) we don't start adding unneeded containers
2018-10-03 15:58:16 +02:00
Ghostkeeper
45e3355318
Catch failure to parse QML component
...
Don't crash the application then.
2018-08-27 10:57:58 +02:00
Lipu Fei
af02dc2758
Only use setMetaDataEntry()
2018-07-11 11:14:57 +02:00
Ghostkeeper
3ae6b8c4c1
Double-escape newlines in script string
...
Because they are stored twice: Once in the CFG of the script, and once in the CFG of the machine instance.
Fixes an issue reported here: https://github.com/Ultimaker/Cura/pull/3229
2018-04-26 13:30:59 +02:00
Ruben D
c65e3656bd
Fix persistence of setting names with uppercase characters
...
The problem was that Python's ConfigParser doesn't preserve case. Everything becomes lowercase. Some post-processing scripts have uppercase characters in their setting keys and these weren't preserved.
This fix configures the ConfigParser to pass the setting keys untransformed. The transformation function becomes the str() function which just passes the input through untransformed.
2018-03-29 00:39:57 +02:00
Ghostkeeper
e2724f53ad
Only check for loaded plug-ins at initial call to loadAllScripts
...
Not for every call to loadScripts.
2018-03-26 13:55:15 +02:00
Ghostkeeper
14936fdf21
Move looping over script directories to separate function
...
Removes some code repetition.
2018-03-26 13:50:29 +02:00
Ghostkeeper
9d63258703
Merge branch 'master' into feature_persistent_postprocessing
2018-03-22 19:19:05 +01:00
Ghostkeeper
d98cab48ac
Get scripts from either Resources or Preferences
...
We must retain the old directory for legacy. People might still have scripts there.
2018-03-12 09:48:03 +01:00
Ghostkeeper
a3efbc70fb
Merge branch 'fix_postprocessing_script_path' of https://github.com/fieldOfView/Cura into fieldOfView-fix_postprocessing_script_path
2018-03-12 09:42:21 +01:00
fieldOfView
c3bf0b834d
Fix location of post processing scripts on Linux
...
On Windows and OSX, resources and preferences are stored in the same folder. On Linux, preferences are in ~/.config, resources are in ~/.local/shared. Postprocessing scripts belong in the latter, along with all the other resources (definitions, plugins, themes).
Fixes #3356
2018-02-20 09:20:01 +01:00
Lipu Fei
495fc8bbd7
WIP: Refactor BuildPlateModel and split MultiBuildPlateModel
2018-02-17 22:24:05 +01:00
Ghostkeeper
afeea6e214
Don't interrupt loading scripts when one error occurs
...
Instead of breaking the loading of the rest of the scripts, just don't load this particular one.
2018-02-12 11:23:43 +01:00
Ruben D
77566180f1
Remove commented code
...
Oops, forgot about this one.
2018-02-04 01:53:10 +01:00
Ruben D
927f193270
Only write scripts to stack upon pressing close button
...
This is more efficient, because we're not writing every time you modify the list of scripts. It's also more complete, since if you don't modify the list of scripts but just modify one of the settings, that setting change also gets written to the stack after closing the window.
2018-02-04 01:26:34 +01:00
Ruben D
bebcd78db0
Reset the selected script index upon changing printers
...
So that you're not getting into a state of viewing an invalid index. If you switch to a printer with 0 scripts attached, the index is still invalid, but it won't display anything then so you're okay.
2018-02-04 01:13:34 +01:00
Ruben D
91ab53e49c
Somewhat better documentation
...
Just some stuff that I saw and thought were missing.
2018-02-04 01:10:35 +01:00
Ruben D
8525131849
Create post-processing tool button on start-up
...
This causes the button to display immediately on start-up if there were any post-processing scripts in the current machine. If there weren't, then no button will be shown (as specified in the QML).
Previously the QML was only loaded first upon clicking the item in the extensions menu. Now it has to be loaded on start-up in order to display that button.
2018-02-04 01:08:15 +01:00
Ruben D
09f580de70
Store post-processing script list in global stack
...
If you switch and such, it'll load these scripts back in. They are now persistent.
2018-02-04 00:51:43 +01:00
Ruben D
7c291e36c9
Add warning for some bug that I saw
...
Maybe one day someone will encounter it again and decide to fix it, but I'm lazy.
2018-02-03 23:54:18 +01:00
Diego Prado Gesto
9d267cb9c7
Check if there is any gcode in the scene before executing a post process
2018-01-31 14:36:16 +01:00