318 Commits

Author SHA1 Message Date
Remco Burema
8aa071056b
Now unused API field only took integers originally.
We want to keep it this way so people can still make plugins work for older versions of Cura, like 3.6, where the 'api' field with just a single major version, instead of the 'supported_sdk_versions', which can be either a version-string like '7.6.0' or a list of version strings.
2021-06-17 11:15:33 +02:00
Remco Burema
04002056ae
Update SDK/API from 7.5.0 to 7.6.0 for 4.10
CURA-8320
2021-06-15 16:08:07 +02:00
Jaime van Kessel
2d396a81c5
Remove unneeded pycapsule imports 2021-05-10 16:53:16 +02:00
Ghostkeeper
08be77adad
Increment SDK version to 7.5.0
The Cura 4.9 release will have expanded functionality. If you have a plug-in that uses this functionality, marking it as using SDK 7.5.0 will notify older Cura releases that they can't use that plug-in.
2021-04-06 13:28:08 +02:00
Philip Lorenz
352fef3efa Adapt to Python 3.9 API changes
Python 3.9 now made the TreeBuilder.start() `attrs` parameter ([1])
mandatory on all implementations. Adapt the plugin accordingly.

[1] https://bugs.python.org/issue39495
2021-01-10 20:21:40 +01:00
Remco Burema
9afbc64934
Merge branch '4.8' 2020-11-10 11:31:53 +01:00
Ghostkeeper
1927f78d5a
Publish Ultimaker 2+ Connect profiles
This is the new printer from Ultimaker.
2020-11-10 11:01:08 +01:00
Jaime van Kessel
10ed7c1288
Merge branch '4.8' of github.com:Ultimaker/Cura 2020-10-22 13:41:44 +02:00
Kostas Karmas
03dc8d00fe Up the SDK version to 7.4.0
In preparation for release of the 4.8.

CURA-7795
2020-10-22 11:29:25 +02:00
Ghostkeeper
6abfa38838
More fixes for PyCapsule_GetPointer race condition
One of the weirdest errors out there, and as far as I know we're the only ones suffering from it, due to having multiple packages of Python bindings created with Sip as well as having PyQt and different threads.
2020-10-16 14:26:27 +02:00
Ghostkeeper
1d5a4f5080
Remove shrinkage percentage setting alias
This alias shouldn't be written any more since the firmware misinterprets the setting value and errors when it's more than 100%.

Contributes to issue CURA-7724.
2020-09-18 12:48:02 +02:00
Kostas Karmas
bd54ef8d5a Update the SDK version to 7.3.0 for 4.7
CURA-7641
2020-08-07 11:12:27 +02:00
Ghostkeeper
0f3a977a58
Consistent typing with function this is overriding
The function in the parent class has changed its type in commit 7968fe6d56205b20be9ba47e5a19be9f5914b084. This one should also change type.
2020-06-15 13:58:12 +02:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
5af9faf5e5 Convert doxygen to rst for X3DReader, XmlMaterialProfile, XRayView 2020-05-28 16:08:51 +02:00
Nino van Hooff
7302e8ba7f Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6
CURA-7383
2020-04-21 11:46:12 +02:00
Jaime van Kessel
2e9dca71ce
Remove a number of unused imports 2020-04-10 13:58:10 +02:00
Ghostkeeper
6f707f3149
Bump SDK version number of Cura 4.5 to 7.1
We've added new things to our API. This allows plug-in developers to use them.

Contributes to issue CURA-7205.
2020-02-10 10:45:07 +01:00
Jaime van Kessel
0eea73d2a9
Fix typing
CURA-6255
2019-12-30 12:57:04 +01:00
Nino van Hooff
9aa5c3cd24 Hardcode plugin id for UsbPrinter and XmlMaterialProfile
Previous solution was more defensive but also introduced dependencies
and extra files for minor benefit

CURA-6255
2019-12-30 12:04:41 +01:00
Nino van Hooff
8ae7459ea7 Use plugin Id instead of __file__ for XmlMaterialProfile
CURA-6255
2019-12-24 15:49:18 +01:00
Nino van Hooff
128bfa987e Use plugin Id instead of __file__ for XmlMaterialProfile
CURA-6255
2019-12-24 15:42:01 +01:00
Ghostkeeper
8a9b791298
Merge branch '4.4'
Conflicts:
	cura/Machines/MaterialNode.py -> Due to some automated formatting tool. Please disable those tools, people.
2019-12-23 16:26:25 +01:00
Remco Burema
f05f4ff244
Fix typo.
part of CURA-7041
2019-12-19 11:38:53 +01:00
Nino van Hooff
ff01b1dab9 Add 6 Material Station specific material settings.
These settings are currently unused by cura, but passed into the PPA
output. Some considerations:
- material_ prepended to all. Even though they are not all
  material specific. The consistency is more developer-friendly imho
- defaults taken from generic_pla
- type is float for all, consistent with what I found in this file

CURA-7041
2019-12-18 11:46:40 +01:00
Remco Burema
8cc054cecc Add missing 'material break preparation temperature'.
part of CURA-6971

(cherry picked from commit 25f0460231fd970b73744fb3fe1c004dc68a5dc9)
2019-12-12 14:09:46 +01:00
Remco Burema
25f0460231
Add missing 'material break preparation temperature'.
part of CURA-6971
2019-11-22 12:01:46 +01:00
Remco Burema
c3d1ab0931
Small refactor: Rename in UM.
part of CURA-6856
2019-11-12 08:40:50 +01:00
Remco Burema
aca7f4551e
Make verified material containers read-only, even for variants.
part CURA-6856
2019-10-31 19:01:23 +01:00
Remco Burema
5908ff60ee
Move verification check from plugin to the import of containers.
part of CURA-6856
2019-10-31 18:50:24 +01:00
Remco Burema
298eb27c7f
Add possibility to check material-profiles.
Needed to add the filename to deserialize, feels a bit unsafe as an optional parameter, will discuss tomorrow.
part of CURA-6856
2019-10-29 17:45:19 +01:00
ninovanhooff
9beea85482
Merge pull request #6566 from Ultimaker/CURA-6858_increase_sdk_ver_7_0
Change SDK version to 7.0.0
2019-10-23 11:54:49 +02:00
Lipu Fei
fc0b8185b7 Fix setMetaDataEntry() dependency on ContainerRegistery
CURA-6920
2019-10-22 11:38:32 +02:00
Nino van Hooff
c62ff262ed Change SDK version to 7.0.0
CURA-6858
2019-10-21 14:51:34 +02:00
Jaime van Kessel
ed6539812e
Ensure that all material profiles get metadata updates
CURA-6868
2019-10-09 17:12:06 +02:00
Ghostkeeper
cc27392ab0
Don't use material groups to update metadata
The material groups are not filled any more in the material manager so this fails.
This might make updating metadata of material profiles slightly slower, but when testing this I noticed no difference.

The function becomes a lot simpler though. And it works again.

Contributes to issue CURA-6600.
2019-09-13 14:42:27 +02:00
Diego Prado Gesto
b18565d9cf Merge branch 'master' into feature_intent_container_tree 2019-09-10 11:08:21 +02:00
Jaime van Kessel
7d3a2c60d4
Added some missing typing 2019-09-06 17:38:22 +02:00
Jaime van Kessel
6f92537305
Add unhappy test for serializing nonbase material 2019-09-06 17:26:28 +02:00
Jaime van Kessel
09025edffa
Convert some class functions to static
Since they didn't access any class attributes, there is no need for them to be classMethods
2019-09-06 17:22:40 +02:00
Jaime van Kessel
94b6f7864f
Add some tests for XMLMaterialProfile 2019-09-06 17:19:23 +02:00
Jaime van Kessel
608ca3e92a
Convert some functions to static 2019-09-06 15:18:50 +02:00
Diego Prado Gesto
f051c48b9e Add a printer to the list of translation IDs
Contributes to CURA-6742.
2019-09-04 14:11:57 +02:00
Ghostkeeper
cb344f9dec
Fix serialising materials without nozzle profile again
Oops. This is simpler anyway.

Contributes to issue CURA-6600.
2019-08-27 17:21:21 +02:00
Ghostkeeper
924d4cc13b
Remove unused container_tree variable
Contributes to issue CURA-6600.
2019-08-27 17:21:20 +02:00
Ghostkeeper
20be7fd8a1
Don't add to variant-specific mapping if it's not variant-specific
Otherwise we'll encounter that the variant name is None when serialising that subprofile.

Contributes to issue CURA-6600.
2019-08-27 16:06:09 +02:00
Ghostkeeper
dabd905853
Fix serialising materials with submaterials in not loaded container trees
Material profiles need to serialise subprofiles that belong to different printers as well. Some of these materials may not be loaded in the ContainerTree structure. To prevent having to load that as well, we're just not going to use the container tree any more. It turns out that the only reason it was using the container tree was to get the hardware_type metadata from the node in the tree. So just get that from the container itself and we're fine.

Contributes to issue CURA-6600.
2019-08-27 15:47:42 +02:00
Ghostkeeper
b60b13e5bf
Use container tree to check for variants when serialising
Not the variant manager, because it's deprecated.

Contributes to issue CURA-6600.
2019-08-27 15:47:41 +02:00
Jaime van Kessel
2417705dfd Prevent crashes when duplicating a material
CURA-6600
2019-08-19 11:42:52 +02:00
Remco Burema
7fb9642e45 Replace deprecated .getContainer() calls with .container
part of CURA-6600
2019-08-15 13:40:08 +02:00