mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add {material_type} and {material_name} as replacement patterns
This commit is contained in:
parent
d5d163377b
commit
f11869034b
2 changed files with 19 additions and 1 deletions
|
@ -411,8 +411,10 @@ class StartSliceJob(Job):
|
|||
extruder_nr = stack.getProperty("extruder_nr", "value")
|
||||
settings = self._all_extruders_settings[str(extruder_nr)].copy()
|
||||
|
||||
# Also send the material GUID. This is a setting in fdmprinter, but we have no interface for it.
|
||||
# Also send the material GUID, type and name. These are settings in fdmprinter, but we have no interface for it.
|
||||
settings["material_guid"] = stack.material.getMetaDataEntry("GUID", "")
|
||||
settings["material_type"] = stack.material.getMetaDataEntry("material", "")
|
||||
settings["material_name"] = stack.material.getMetaDataEntry("name", "")
|
||||
|
||||
# Replace the setting tokens in start and end g-code.
|
||||
extruder_nr = stack.getProperty("extruder_nr", "value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue