Skip to content

Instantly share code, notes, and snippets.

@knoopx
Last active November 17, 2019 14:43
Show Gist options
  • Save knoopx/0f600cfdd14863f45f4e90842688e888 to your computer and use it in GitHub Desktop.
Save knoopx/0f600cfdd14863f45f4e90842688e888 to your computer and use it in GitHub Desktop.
Cura Extended Material Profiles

What is this for?

Cura does not allow you to set Flow on Material Profiles for some stupid reason. This patch fixes it.

Screenshot

Tested on Cura 3.6, might not work on other versions.

Installation

rm /Applications/Ultimaker\ Cura.app/Contents/Resources/lib/python3.5/cura/Settings/MaterialSettingsVisibilityHandler.pyc
curl -L https://gist.github.com/knoopx/0f600cfdd14863f45f4e90842688e888/raw/MaterialSettingsVisibilityHandler.py > /Applications/Ultimaker\ Cura.app/Contents/Resources/lib/python3.5/cura/Settings/MaterialSettingsVisibilityHandler.py
# Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import UM.Settings.Models.SettingVisibilityHandler
class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
def __init__(self, parent=None, *args, **kwargs):
super().__init__(parent=parent, *args, **kwargs)
material_settings = {
"default_material_print_temperature",
"default_material_bed_temperature",
"material_standby_temperature",
"material_bed_temperature_layer_0",
"material_flow",
"material_flow_layer_0",
#"material_linear_advance_factor", # uncomment if you are using Linear Advance Plugin
"cool_fan_speed",
"retraction_amount",
"retraction_speed",
}
self.setVisible(material_settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment