mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Expose an extruderValue() function to value functions
It returns the value of a setting of a specific extruder. Contributes to CURA-2009
This commit is contained in:
parent
b102a6cedd
commit
3c35830cb8
2 changed files with 19 additions and 0 deletions
|
@ -101,6 +101,8 @@ class CuraApplication(QtApplication):
|
|||
SettingDefinition.addSettingType("extruder", None, str, Validator)
|
||||
|
||||
SettingFunction.registerOperator("extruderValues", cura.Settings.ExtruderManager.getExtruderValues)
|
||||
SettingFunction.registerOperator("extruderValue", cura.Settings.ExtruderManager.getExtruderValue)
|
||||
|
||||
## Add the 4 types of profiles to storage.
|
||||
Resources.addStorageType(self.ResourceTypes.QualityInstanceContainer, "quality")
|
||||
Resources.addStorageType(self.ResourceTypes.VariantInstanceContainer, "variants")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue