From: daid303 Date: Tue, 4 Dec 2012 17:54:11 +0000 (+0100) Subject: Add experimental hop setting. X-Git-Tag: 13.03~178 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7cba9b96c1a305217f9935c5831273b244e29565;p=cura.git Add experimental hop setting. --- diff --git a/Cura/cura_sf/fabmetheus_utilities/settings.py b/Cura/cura_sf/fabmetheus_utilities/settings.py index 7dddce31..cc9a7a29 100644 --- a/Cura/cura_sf/fabmetheus_utilities/settings.py +++ b/Cura/cura_sf/fabmetheus_utilities/settings.py @@ -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", diff --git a/Cura/gui/expertConfig.py b/Cura/gui/expertConfig.py index 9233e333..c612ef93 100644 --- a/Cura/gui/expertConfig.py +++ b/Cura/gui/expertConfig.py @@ -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() diff --git a/Cura/util/profile.py b/Cura/util/profile.py index fc9752aa..c0b709c7 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -72,6 +72,7 @@ profileDefaultSettings = { 'raft_base_material_amount': '100', 'raft_interface_material_amount': '100', 'bottom_thickness': '0.3', + 'hop_on_move': 'False', 'plugin_config': '', 'add_start_end_gcode': 'True',