86 Commits

Author SHA1 Message Date
Ghostkeeper
1bcd134f85
Fix code style
Most stuff here was recently changed. Some of it was where I found a pattern in something that was likely copy-pasted from somewhere else, so I did a global search and replace on that.

Contributes to issue CURA-5784.
2018-10-18 14:30:33 +02:00
Jaime van Kessel
e3861b0d90 Add few more elide properties to ensure text doesnt' overlap 2018-10-10 12:48:22 +02:00
Lipu Fei
cc34e14215 Use ElideRight for long script names
CURA-5683
2018-10-10 11:52:16 +02:00
Jaime van Kessel
9e5b72c5b6 Merge branch 'fix_unnecessary_imports' of https://github.com/fieldOfView/Cura 2018-10-08 16:41:29 +02:00
fieldOfView
9ac744b9ba Remove unnecessary import and declaration of i18n in plugins 2018-10-03 22:00:24 +02: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
Jaime van Kessel
13ab9ba384 Merge branch 'patch-1' of https://github.com/adecastilho/Cura 2018-10-02 13:15:48 +02:00
Lipu Fei
ccef0843c2
Merge pull request #4273 from Kriechi/pause-at-height-rrf
add PauseAtHeight post-processing script for RRF
2018-09-13 15:11:30 +02:00
Jaime van Kessel
4cde6c05ae Switch most usages of containerStackId to containerStack for settingPropertyProvider
This mostly makes the code a bit more logic and also decreases the number of searches in the registry
2018-09-07 15:23:09 +02:00
Amanda de Castilho
7e7f2aab6b
Update DisplayFilenameAndLayerOnLCD.py 2018-08-29 09:48:37 -07:00
Amanda de Castilho
f7fbc685d8
Update DisplayFilenameAndLayerOnLCD.py
changed so that actual filename is displayed (or alternatively user can enter text to display) to LCD during print
2018-08-29 08:43:16 -07:00
Amanda de Castilho
a5baa90086
Rename DisplayFilenameAndLayerOnLCD to DisplayFilenameAndLayerOnLCD.py
added the .py extention
2018-08-29 08:09:57 -07:00
Amanda de Castilho
6dbf0a5fb7
Create DisplayFilenameAndLayerOnLCD
This plugin inserts M117 into the g-code so that the filename is displayed on the LCD and updates at each layer to display the current layer
2018-08-29 00:39:13 -07:00
Aleksei S
fe9cada459 Increase plugin API version to 5
CURA-5627
2018-08-27 13:59:00 +02:00
Ghostkeeper
45e3355318
Catch failure to parse QML component
Don't crash the application then.
2018-08-27 10:57:58 +02:00
Thomas Kriechbaumer
afb4440d64 add PauseAtHeight post-processing script for RRF 2018-08-22 13:46:49 +02:00
Ghostkeeper
6740c2bee9
Fix offset of initial layer height
It would detect the height of the raft by looking at what the first Z coordinate is that it encounters on layer 0. This Z coordinate also includes the initial layer height though. If you pause lower than the initial layer height (but higher than 0), you'd expect to pause in the initial layer.
2018-08-17 11:24:39 +02:00
Jack Ha
b8ec1d0fa7 In relative mode, the feedback is still absolute and not relative. CURA-5480 2018-08-01 10:52:31 +02:00
Aleksei S
fca51ac41f Set relative after getting to line G91 2018-07-25 13:44:58 +02:00
Lipu Fei
952bc54452 Make stretch script work with relative movements
CURA-5480
2018-07-24 15:59:02 +02:00
Diego Prado Gesto
296b74b032 Set negative values to retraction in the filament change script.
Fixes #4114
2018-07-24 10:48:52 +02:00
Lipu Fei
af02dc2758 Only use setMetaDataEntry() 2018-07-11 11:14:57 +02:00
Ghostkeeper
54b990c0bd
Retract further if we can't set the temperature to stand-by temp
Because we can't set the temperature and we don't know the correct temperature to set it back to, we will just retract further in order to prevent damage to the material.

Contributes to issue CURA-5491.
2018-07-09 11:21:34 +02:00
Ghostkeeper
41857338cb
Use firmware retraction and temperature control settings
Instead of deriving this from the g-code flavour, just use the actual settings that are made to control these two properties.

Contributes to issue CURA-5491.
2018-07-09 09:27:11 +02:00
Ghostkeeper
b67339c3bf
Merge branch 'CURA-5491-pause-at-height'
Contributes to issue CURA-5491.
2018-07-09 09:17:49 +02:00
Ghostkeeper
6977b8de6e
Make getValue return an int if it's an integer number
This is a more generic solution to what's done in 7058ddbb66084bee9cd507ed69f031ec1262163e.

Contributes to issue CURA-5491.
2018-07-09 09:01:52 +02:00
Ghostkeeper
96896088c3
Add spaces around equals operators
As per our code style regulations.
2018-07-05 16:27:52 +02:00
Jack Ha
b77220b260 Add more ultigcode retract and unretract. CURA-5491 2018-07-03 13:41:14 +02:00
Jack Ha
e61ad750b7 Fixed UM3 Griffin and UM2 UltiGCode for Pause At Height. CURA-5491 2018-07-03 13:13:33 +02:00
Jack Ha
c260078631 Remove temperature commands for pause at height for UM3. CURA-5491 2018-07-03 09:40:42 +02:00
Jack Ha
7058ddbb66 Corrected float/int mixups and allow catching temperature before the layers start. CURA-5491 2018-07-02 16:35:49 +02:00
Jack Ha
17c4b65453 Fix pause at height that uses new latest temperature CURA-5491 2018-07-02 15:13:44 +02:00
Ghostkeeper
d4ca3d144e
Use latest temperature instead of a manual resume temperature
We don't need the user to fill this in. We can just track the resume temperature ourselves.

Contributes to issue CURA-5491.
2018-06-21 16:07:29 +02:00
Ghostkeeper
7b82421751
Don't disable E steppers when pausing
There is no such command to disable only the E stepper drivers. This command M84 gets interpreted as disabling ALL stepper drivers, which on some printers would cause the print bed to fall down.
2018-06-14 14:57:03 +02:00
Diego Prado Gesto
dfd20e1362 CURA-5335 Looking for the actual line number in the gcode when using the filament change script. 2018-06-14 14:35:46 +02:00
ChrisTerBeke
717c11005b Codestyle changes after merge 2018-05-24 10:58:55 +02:00
ChrisTerBeke
7d0b664c53
Merge pull request #3648 from JPFrancoia/master
Bug fixes and improvements for PauseAtHeight plugin
2018-05-24 10:56:16 +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
JPFrancoia
f15680b9ea Cleaning dev instructions. 2018-04-26 09:47:49 +01:00
Ghostkeeper
942afe2c3f
Merge branch '3.3' into feature_show_config_errors 2018-04-12 16:20:42 +02:00
JPFrancoia
a14d594909 - Solve https://github.com/Ultimaker/Cura/issues/3608.
- Now account for raft layers when choosing "Pause at layer no".

- Now positions the nozzle at (X, Y) of the next layer when resuming.

- Cleaning code
2018-04-10 16:09:04 +01:00
Ghostkeeper
572721e20d
Catch ContainerFormatError when deserialising containers
Only the deserialize() functions themselves may pass the ContainerFormatError on, because their callers will have to handle those errors anyway.

Contributes to issue CURA-5045.
2018-04-06 13:26:16 +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
4226f3641b
Better defaults for filament change
And better descriptions.
2018-03-21 17:12:54 +01:00
Ghostkeeper
363166bbb7
Merge branch 'post_stretch' of https://github.com/electrocbd/Cura into electrocbd-post_stretch 2018-03-20 16:01:24 +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