Browse Source

JSON feat: Z Hop only over printed parts and Z Hop Enable (CURA-1506)

Tim Kuipers 8 years ago
parent
commit
94dcacb27e
1 changed files with 21 additions and 3 deletions
  1. 21 3
      resources/definitions/fdmprinter.def.json

+ 21 - 3
resources/definitions/fdmprinter.def.json

@@ -1012,16 +1012,34 @@
                     "enabled": "retraction_enable",
                     "settable_per_mesh": true
                 },
-                "retraction_hop": {
-                    "label": "Z Hop when Retracting",
+                "retraction_hop_enabled": {
+                    "label": "Z Hop when Retracted",
                     "description": "Whenever a retraction is done, the build plate is lowered to create clearance between the nozzle and the print. It prevents the nozzle from hitting the print during travel moves, reducing the chance to knock the print from the build plate.",
+                    "type": "bool",
+                    "default_value": false,
+                    "enabled": "retraction_enable",
+                    "settable_per_mesh": true,
+                    "children": {
+                        "retraction_hop_only_when_collides": {
+                            "label": "Z Hop Only Over Printed Parts",
+                            "description": "Only perform a Z Hop when moving over printed parts which cannot be avoided by horizontal motion by Avoid Printed Parts when Traveling.",
+                            "type": "bool",
+                            "default_value": true,
+                            "enabled": "retraction_hop_enabled and travel_avoid_other_parts",
+                            "settable_per_mesh": true
+                        },
+                "retraction_hop": {
+                    "label": "Z Hop Height",
+                    "description": "The height difference when performing a Z Hop.",
                     "unit": "mm",
                     "type": "float",
                     "default_value": 0,
                     "minimum_value_warning": "-0.0001",
                     "maximum_value_warning": "10",
-                    "enabled": "retraction_enable",
+                    "enabled": "retraction_hop_enabled",
                     "settable_per_mesh": true
+                }
+                    }
                 },
                 "material_standby_temperature":
                 {