Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PostProcessingPlugin/scripts/FilamentChange.py')
-rw-r--r--plugins/PostProcessingPlugin/scripts/FilamentChange.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/FilamentChange.py b/plugins/PostProcessingPlugin/scripts/FilamentChange.py
index 943ca30f2e..74b9687f8c 100644
--- a/plugins/PostProcessingPlugin/scripts/FilamentChange.py
+++ b/plugins/PostProcessingPlugin/scripts/FilamentChange.py
@@ -63,10 +63,12 @@ class FilamentChange(Script):
}
}"""
- ## Inserts the filament change g-code at specific layer numbers.
- # \param data A list of layers of g-code.
- # \return A similar list, with filament change commands inserted.
def execute(self, data: List[str]):
+ """Inserts the filament change g-code at specific layer numbers.
+
+ :param data: A list of layers of g-code.
+ :return: A similar list, with filament change commands inserted.
+ """
layer_nums = self.getSettingValueByKey("layer_number")
initial_retract = self.getSettingValueByKey("initial_retract")
later_retract = self.getSettingValueByKey("later_retract")