mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
T576: Added {jobname} keyword
This commit is contained in:
parent
67aae55640
commit
7c3728632f
1 changed files with 2 additions and 0 deletions
|
@ -390,7 +390,9 @@ class CuraEngineBackend(Backend):
|
|||
replaced = line.replace("{print_time}", str(Application.getInstance().getPrintInformation().currentPrintTime.getDisplayString(DurationFormat.Format.ISO8601)))
|
||||
replaced = replaced.replace("{filament_amount}", str(Application.getInstance().getPrintInformation().materialLengths))
|
||||
replaced = replaced.replace("{filament_weight}", str(Application.getInstance().getPrintInformation().materialWeights))
|
||||
# TODO: calculate filament cost
|
||||
replaced = replaced.replace("{filament_cost}", "Not yet implemented")
|
||||
replaced = replaced.replace("{jobname}", str(Application.getInstance().getPrintInformation().jobName))
|
||||
|
||||
self._scene.gcode_list[self._scene.gcode_list.index(line)] = replaced
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue