15 Commits

Author SHA1 Message Date
Nino van Hooff
971d8cd8e2 Remove leftover debug code from ChangeAtZ.py
CURA-7146
2020-04-23 11:48:50 +02:00
novamxd
096198ec9a Revamped ChangeAtZ
Removed some derpug code
2020-04-19 04:47:54 -05:00
novamxd
8b206751f8 Revamped ChangeAtZ
Added an enabled flag, allowing users to enable/disable ChangeAtZ layers at will without removing them
Improved performance of GCodeCommand, deferred parsing of arguments to when it is first requested as opposed to all the time
Removed type hints because the supported python version in Cura is too low
2020-04-13 22:22:21 -05:00
novamxd
943d04a734 * Revamped ChangeAtZ
Added additional option for disabling all retract options
Added more comments.
Added support for firmware based retractions.
Added support for outputting changes to LCD (untested).
Added type hints to most functions and variables.
Created GCodeCommand class for better detection of G1 vs G10 or G11 commands, and accessing arguments.
Fixed issue of properly restoring previous values in single layer option.
Improved wording of Single Layer vs Keep Layer to better reflect what was happening.
Moved most GCode methods to GCodeCommand class.
2020-02-17 22:58:39 -06:00
novamxd
bcc12030a2 Revamped ChangeAtZ
Adjusted coding style to use spaces instead of tabs
2020-01-03 19:01:33 -06:00
novamxd
6c22a5ed06 * Revamped ChangeAtZ
Fixed a bug where extruder temps for extruder one and two were being applied universally. Now sets individually as expected.
2019-12-26 00:56:57 -06:00
novamxd
5d832a35cb Revamped ChangeAtZ
Fixed bugs where TargetZ, Bed Temp, Extruder Temps, Retract Feed Rate and Retract Length weren't properly considered as floats. Now capable of properly targeting decimal Z values, and altering others as decimals
Updated debug cases to test for it.
2019-12-12 21:16:27 -06:00
novamxd
f2428ccb52 Revamped ChangeAtZ.
Added comments.
Added support for changing Retract Length and Speed.
Applied code refactoring to clean up various coding styles.
Broke up functions for clarity.
Fixed issue of cumulative ChangeZ mods so they can now properly be stacked on top of each other.
Removed layer spread option in favor for fixing ChangeZ stacking
Split up class so it can be debugged outside of Cura.
2019-12-09 01:56:01 -06:00
Remco Burema
756c21cd19 Remove extra empty lines in ChangeAtZ-scipt output. 2019-09-13 13:33:06 +02:00
Jaime van Kessel
26db08048b Merge branch '4.1' of github.com:Ultimaker/Cura 2019-05-20 11:03:38 +02:00
Jaime van Kessel
7d8c97dd7b ChangeAtZ no longer sets flow to -1 if no previous flow was found
It makes a lot more sense to just asume the value is 100 than -1

Fixes #5284
2019-05-20 11:02:40 +02:00
Ghostkeeper
abcac67cee
Improve wording of No. Layers setting
Fixes #5741.
2019-05-17 09:39:51 +02:00
Nico Salvador
39cdb3ed0a
Fixed typo in ChangeAtZ.py 2019-01-06 10:19:21 +08:00
Ghostkeeper
2eb9b111fc
Fix changing flow rate in dual extrusion
This potentially set the flow rate to -1, since it was changing the flow rate to the old['flowrateTwo'] which was left at -1 since initialisation because it didn't update here.
2018-10-19 09:55:23 +02:00
Diego Prado Gesto
68acb13853 CURA-4615 Rename to ChangeAtZ also the file, the class name and
variables.
2018-02-14 17:23:02 +01:00