Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura 11696 spiral z hop #18987

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
59 changes: 58 additions & 1 deletion resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,18 @@
"settable_per_mesh": false,
"settable_per_extruder": false,
"settable_per_meshgroup": false
},
"minimal_segment_length":
{
"label": "Minimum straight line length",
"description": "When approximating curves by straight lines (e.g. in the spiral z-hop) the discretization will be done based on this value.",
"type": "float",
"unit": "mm",
"enabled": false,
"default_value": 0.5,
"settable_per_extruder": false,
"settable_per_mesh": false,
"settable_per_meshgroup": false
}
}
},
Expand Down Expand Up @@ -4294,7 +4306,7 @@
"infill": "Within Infill"
},
"default_value": "all",
"value": "'no_outer_surfaces' if (any(extruderValues('skin_monotonic')) or any(extruderValues('ironing_enabled')) or (any(extruderValues('roofing_monotonic')) and any(extruderValues('roofing_layer_count')))) else 'all'",
"value": "'no_outer_surfaces' if (any(extruderValues('skin_monotonic')) or any(extruderValues('ironing_enabled')) or (any(extruderValues('roofing_monotonic')) and any(extruderValues('roofing_layer_count')))) else 'off' if resolveOrValue('z_hop_type') == 'spiral' else 'all'",
"resolve": "'noskin' if 'noskin' in extruderValues('retraction_combing') else ('infill' if 'infill' in extruderValues('retraction_combing') else ('all' if 'all' in extruderValues('retraction_combing') else ('no_outer_surfaces' if 'no_outer_surfaces' in extruderValues('retraction_combing') else 'off')))",
"settable_per_mesh": false,
"settable_per_extruder": false
Expand Down Expand Up @@ -8528,6 +8540,51 @@
"type": "bool",
"default_value": true,
"settable_per_mesh": true
},
"z_hop_type":
{
"label": "Z Hop Type",
"description": "How to lift the nozzle, when changing from an extrusion to a travel. The spiral z hop will automatically disable combing. If desired it can be turned on again. Turning off combing will smooth motion of the printer but increase stringing.",
"type": "enum",
"options":
{
"normal": "Vertical Hop",
"spiral": "Spiral Hop"
},
"enabled": true,
"default_value": "normal",
"settable_per_mesh": false,
"settable_per_extruder": false,
"settable_per_meshgroup": false,
"children":
{
"spiral_radius":
{
"label": "Z Hop Radius",
"description": "Radius of the spiral z hop.",
"unit": "mm",
"default_value": 10,
"minimum_value": "1",
"maximum_value": "70",
"maximum_value_warning": "30",
"type": "float",
"enabled": "resolveOrValue('z_hop_type') == 'spiral'",
"settable_per_mesh": false,
"settable_per_extruder": false,
"settable_per_meshgroup": false
},
"retract_during_spiral":
{
"label": "Retract While Spiral",
"description": "Do the retraction while simultaneously performing the spiral z hop (and not as a separate command before). Please note, that in case of a very fast or very small retraction, the retraction speed set in the UI, might then only serve as an upper limit.",
"type": "bool",
"default_value": true,
"enabled": "resolveOrValue('z_hop_type') == 'spiral'",
"settable_per_extruder": false,
"settable_per_mesh": false,
"settable_per_meshgroup": false
}
}
}
}
},
Expand Down
32 changes: 32 additions & 0 deletions resources/i18n/fdmprinter.def.json.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5648,6 +5648,38 @@ msgctxt "bv_temp_anomaly_limit description"
msgid "Limit on Build Volume temperature Anomaly for detection."
msgstr ""

msgctxt "z_hop_type label"
msgid "Z Hop Type"
msgstr ""

msgctxt "z_hop_type description"
msgid "How to lift the nozzle, when changing from an extrusion to a travel. The spiral z hop will automatically disable combing. If desired it can be turned on again."
msgstr ""

msgctxt "z_hop_type option normal"
msgid "Vertical Hop"
msgstr ""

msgctxt "z_hop_type option spiral"
msgid "Spiral Hop"
msgstr ""

msgctxt "spiral_radius label"
msgid "Z Hop Radius"
msgstr ""

msgctxt "spiral_radius description"
msgid "Radius of the spiral z hop."
msgstr ""

msgctxt "retract_during_spiral label"
msgid "Retract While Spiral"
msgstr ""

msgctxt "retract_during_spiral description"
msgid "Do the retraction while simultaneously performing the spiral z hop (and not as a separate command before). Please note, that in case of a very fast or very small retraction, the retraction speed set in the UI, might then only serve as an upper limit."
msgstr ""

msgctxt "command_line_settings label"
msgid "Command Line Settings"
msgstr ""
Expand Down