Skip to content

Commit

Permalink
Cura 3.2 moves gcode_list into a dict
Browse files Browse the repository at this point in the history
gcode_list is now found in a dict of gcode_lists indexed by build plate id
  • Loading branch information
markwal committed Feb 12, 2018
1 parent 5ab5bca commit 4434c97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OctoPrintOutputDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ def requestWrite(self, node, fileName = None, *args, **kwargs):
message.show()
self._message = message

# find the G-code for the active build plate to print
active_build_plate_id = Application.getInstance().getBuildPlateModel().activeBuildPlate
gcode_dict = getattr(Application.getInstance().getController().getScene(), "gcode_dict")
gcode = gcode_dict[active_build_plate_id]

# send all the gcode to self._stream
gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")
lines = len(gcode)
nextYield = time() + 0.05
i = 0
Expand Down

0 comments on commit 4434c97

Please sign in to comment.