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:
Arjen Hiemstra 2016-08-02 19:34:46 +02:00
parent b102a6cedd
commit 3c35830cb8
2 changed files with 19 additions and 0 deletions

View file

@ -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")