def __init__(self, parent):
wx.Panel.__init__(self, parent,-1)
- self.alterationFileList = ['start.gcode', 'end.gcode', 'nextobject.gcode', 'replace.csv']
- if int(profile.getPreference('extruder_amount')) > 1:
- self.alterationFileList.append('switchExtruder.gcode')
+ self.alterationFileList = ['start.gcode', 'end.gcode']#, 'nextobject.gcode', 'replace.csv'
+ #if int(profile.getPreference('extruder_amount')) > 1:
+ # self.alterationFileList.append('switchExtruder.gcode')
self.currentFile = None
self.textArea = gcodeTextArea.GcodeTextArea(self)
#Alteration page
self.alterationPanel = alterationPanel.alterationPanel(self.nb)
- if False:
- self.nb.AddPage(self.alterationPanel, "Start/End-GCode")
- else:
- self.alterationPanel.Show(False)
+ self.nb.AddPage(self.alterationPanel, "Start/End-GCode")
self.Bind(wx.EVT_SIZE, self.OnSize)
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
-G1 Z15.0 F{max_z_speed} ;move the platform down 15mm
+G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
'objectSink': int(profile.getProfileSettingFloat('object_sink') * 1000),
'minimalLayerTime': int(profile.getProfileSettingFloat('cool_min_layer_time')),
'minimalFeedrate': int(profile.getProfileSettingFloat('cool_min_feedrate')),
- 'coolHeadLift': 1 if profile.getProfileSetting('cool_head_lift') == 'True' else 0
+ 'coolHeadLift': 1 if profile.getProfileSetting('cool_head_lift') == 'True' else 0,
+ 'startCode': profile.getAlterationFileContents('start.gcode'),
+ 'endCode': profile.getAlterationFileContents('end.gcode'),
}
def _runSliceProcess(self, cmdList):