profile.loadPreferences(profile.getPreferencePath())
if options.profile is not None:
- profile.loadProfileFromString(options.profile)
+ profile.setProfileFromString(options.profile)
elif options.profileini is not None:
profile.loadProfile(options.profileini)
else:
from Cura.util import meshLoader
import shutil
- def commandlineProgessCallback(progress, ready):
+ def commandlineProgressCallback(progress, ready):
if progress >= 0 and not ready:
print 'Preparing: %d%%' % (progress * 100)
scene = objectScene.Scene()
- slicer = sliceEngine.Slicer(commandlineProgessCallback)
+ scene.updateMachineDimensions()
+ slicer = sliceEngine.Slicer(commandlineProgressCallback)
for m in meshLoader.loadMeshes(args[0]):
scene.add(m)
slicer.runSlicer(scene)
slicer.wait()
+ profile.replaceGCodeTagsFromSlicer(slicer.getGCodeFilename(), slicer)
if options.output:
shutil.copyfile(slicer.getGCodeFilename(), options.output)