chiark / gitweb /
Add experimental hop setting.
authordaid303 <daid303@gmail.com>
Tue, 4 Dec 2012 17:54:11 +0000 (18:54 +0100)
committerdaid303 <daid303@gmail.com>
Tue, 4 Dec 2012 17:54:11 +0000 (18:54 +0100)
Cura/cura_sf/fabmetheus_utilities/settings.py
Cura/gui/expertConfig.py
Cura/util/profile.py

index 7dddce312ed70a2fea3bd5e8b852f98054ef77b3..cc9a7a29cf3bcc9d3904ed224b70b49bcc586171 100644 (file)
@@ -311,8 +311,8 @@ def getProfileInformation():
                        'Fan_speed_min_%': storedSettingInt('fan_speed'),
                        'Fan_speed_max_%': storedSettingInt('fan_speed_max'),
                },'hop': {
-                       'Activate_Hop': "False",
-                       'Hop_Over_Layer_Thickness_ratio': DEFSET,
+                       'Activate_Hop': storedSetting('hop_on_move'),
+                       'Hop_Over_Layer_Thickness_ratio': lambda setting: 0.2 / profile.getProfileSettingFloat('layer_height'),
                        'Minimum_Hop_Angle_degrees': DEFSET,
                },'wipe': {
                        'Activate_Wipe': "False",
index 9233e333d5935331a7d3ebbcb2f856af896fa384..c612ef93ac7ba619ae8d5e3b49499206f4970e32 100644 (file)
@@ -67,6 +67,9 @@ class expertConfigWindow(configBase.configWindowBase):
                configBase.TitleRow(right, "Retraction")
                c = configBase.SettingRow(right, "Retract on jumps only", 'retract_on_jumps_only', True, 'Only retract when we are making a move that is over a hole in the model, else retract on every move. This effects print quality in different ways.')
 
+               configBase.TitleRow(right, "Hop")
+               c = configBase.SettingRow(right, "Enable hop on move", 'hop_on_move', False, 'When moving from print position to print position, raise the printer head 0.2mm so it does not knock off the print (experimental).')
+
                main.Fit()
                self.Fit()
 
index fc9752aa1f48435c71733f8a90d07c74c0ad3fc9..c0b709c76d2c5292182e615c072e5f5463a5ac7d 100644 (file)
@@ -72,6 +72,7 @@ profileDefaultSettings = {
        'raft_base_material_amount': '100',\r
        'raft_interface_material_amount': '100',\r
        'bottom_thickness': '0.3',\r
+       'hop_on_move': 'False',\r
        'plugin_config': '',\r
        \r
        'add_start_end_gcode': 'True',\r