\r
configBase.TitleRow(left, 'Slicer settings')\r
c = configBase.SettingRow(left, 'Slicer selection', 'slicer', ['Cura (Skeinforge based)', 'Slic3r'], 'Which slicer to use to slice objects. Usually the Cura engine produces the best results. But Slic3r is developing fast and is faster with slicing.', type = 'preference')\r
+ c = configBase.SettingRow(left, 'Save profile on slice', 'save_profile', False, 'When slicing save the profile as [stl_file]_profile.ini next to the model.', type = 'preference')\r
\r
self.MakeModal(True)\r
main.Fit()\r
import subprocess
import time
+from util import profile
from util import sliceRun
class sliceProgessPanel(wx.Panel):
self.prevStep = 'start'
self.totalDoneFactor = 0.0
self.startTime = time.time()
+ if profile.getPreference('save_profile') == 'True':
+ profile.saveGlobalProfile(self.filename[: self.filename.rfind('.')] + "_profile.ini")
p = subprocess.Popen(sliceRun.getSliceCommand(self.filename), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
self.thread = WorkerThread(self, filename, p)
'serial_port': 'AUTO',\r
'serial_baud': '250000',\r
'slicer': 'Cura (Skeinforge based)',\r
+ 'save_profile': 'False',\r
}\r
\r
def getDefaultProfilePath():\r