433 Commits

Author SHA1 Message Date
Aleksei S
6df4ad3f6d Merge branch 'master' of github.com:Ultimaker/cura 2018-02-26 11:51:56 +01:00
Aleksei S
cd0846fad2 PostProcessing plugi, script Pause at Height redo layers
gives incorrect E-values
CURA-4670
2018-02-26 11:49:51 +01:00
Ghostkeeper
6934c3f881
Use self.putValue to write g-code
Mostly as a test of this function. Seems to work.
2018-02-26 09:54:42 +01:00
Ghostkeeper
a7e1910711
Add E in the priority list
This way we're assured of the order in which these parameters occur, even though the firmware doesn't care about it. It's easier to read though.
2018-02-26 09:54:07 +01:00
Ghostkeeper
5160373580
Add helper function to write g-code lines
Requested during the post-processing script workshop that I was giving.
2018-02-26 09:43:10 +01:00
Ghostkeeper
d0cc9ba8a6
Remove debugging prints 2018-02-26 09:42:29 +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
Christophe Baribaud
bd1f2922ef Post stretch algorithm fixes
Extract line width from current extruder nozzle size
Change default values of stretch parameters from 0.08 to 0.1
2018-02-17 13:30:08 +01: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
Ghostkeeper
ee9de1f11b
Merge branch '3.2'
Lots of conflicts due to rounding vs. flooring of text element positions for weirdness with the font aliasing.
2018-02-14 10:53:51 +01:00
Mark
b531c0550d Change Math.floor to Math.round as a last try to fix garbled fonts
CURA-4941
2018-02-14 09:28:47 +01:00
Ghostkeeper
fb0eda72b9
Change tabs into spaces
As per our code style.
2018-02-12 11:59:46 +01:00
Ghostkeeper
75265911d4
Add option to pause at layer
Fixes #3172.
2018-02-12 11:59:22 +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
Ghostkeeper
b8fce75dac
Track index instead of finding it back later
It has to iterate over all layers and do string comparison to find the index back. Instead we just keep track of the index so this should improve performance a bit.
2018-02-12 11:12:55 +01:00
Ghostkeeper
80b99e0323
Use double quotes instead of single quotes
As per our code style. It doesn't say anything about single-character strings in particular.
2018-02-12 11:10:57 +01:00
Ghostkeeper
0e23fb15af
Don't skip the first layer 2018-02-12 11:07:15 +01:00
Ghostkeeper
cfdde8dd07
Simplify indentation of pause at height script
Instead of making lots of nested if statements, use the if statements as an interruption check. This reduces the indentation a lot and makes it easier to read in my opinion. It also makes it easier to add stuff to these checks.
2018-02-12 11:06:17 +01:00
Ghostkeeper
183792ae09
Change 'Tweak' into 'Change' and 'tw@' into 'ch@'
Also in the resulting g-code.

Contributes to issue CURA-4615.
2018-02-09 10:55:50 +01:00
Aleksei S
fdfeeb5496 Renamed: In Postprocessing plugin the "Tweak" script is renamed to "Change"
CURA-4615
2018-02-06 13:38:14 +01:00
Ruben D
77566180f1
Remove commented code
Oops, forgot about this one.
2018-02-04 01:53:10 +01:00
Ruben D
f9bee9ad3e
Change tabs into spaces
I think this IDE isn't configured correctly yet.
2018-02-04 01:39:36 +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
ChrisTerBeke
6c0fb110fe Add post processing source files 2018-01-09 10:31:12 +01:00
ChrisTerBeke
9c9c46aade Remove submodule 2018-01-09 10:30:02 +01:00
ChrisTerBeke
1f2007554d Add post processing source files to main repo 2018-01-09 10:27:28 +01:00