def _loadModels(self, filelist):
self.filelist = filelist
- self.SetTitle(filelist[-1] + ' - Cura - ' + version.getVersion())
+ self.SetTitle('Cura - %s - %s' % (version.getVersion(), filelist[-1]))
profile.putPreference('lastFile', ';'.join(self.filelist))
self.preview3d.loadModelFiles(self.filelist, True)
self.preview3d.setViewMode("Normal")
self.addToModelMRU(self.filelist[idx])
def OnDropFiles(self, files):
+ profile.putProfileSetting('model_matrix', '1,0,0,0,1,0,0,0,1')
+ profile.setPluginConfig([])
+ self.updateProfileToControls()
self._loadModels(files)
def OnLoadModel(self, e):
c = configBase.SettingRow(right, "Initial layer thickness (mm)", 'bottom_thickness', '0.0', 'Layer thickness of the bottom layer. A thicker bottom layer makes sticking to the bed easier. Set to 0.0 to have the bottom layer thickness the same as the other layers.')
validators.validFloat(c, 0.0)
validators.warningAbove(c, lambda : (float(profile.getProfileSetting('nozzle_size')) * 3.0 / 4.0), "A bottom layer of more then %.2fmm (3/4 nozzle size) usually give bad results and is not recommended.")
-# c = configBase.SettingRow(right, "Cut off object bottom (mm)", 'object_sink', 0.05, '...')
+# c = configBase.SettingRow(right, "Cut off object bottom (mm)", 'object_sink', 0.05, 'Sinks the object into the platform, this can be used for objects that do not have a flat bottom and thus create a too small first layer.')
# validators.validFloat(c, 0.0)
# configBase.settingNotify(c, lambda : self.GetParent().GetParent().GetParent().preview3d.Refresh())
# c = configBase.SettingRow(right, "Duplicate outlines", 'enable_skin', False, 'Skin prints the outer lines of the prints twice, each time with half the thickness. This gives the illusion of a higher print quality.')
if mode == "GCode":
self.viewSelection.setValue(4)
wx.CallAfter(self.glCanvas.Refresh)
-
+
def loadModelFiles(self, filelist, showWarning = False):
while len(filelist) > len(self.objectList):
self.objectList.append(previewObject())
obj.fileTime = None
self.gcodeFileTime = None
self.logFileTime = None
+ obj.mesh = None
obj.filename = filelist[idx]
- obj.mesh = None
self.deselectTool()
self.gcodeFilename = sliceRun.getExportFilename(filelist[0])
def setValue(self, value):
self._selection = value
+ self._imageID = self._imageIDs[self._selection]
self._comboCallback()
def OnMouseDown(self, x, y):
self._ProcessNode2(node)
scale = float(self._base['collada'][0]['asset'][0]['unit'][0]['_meter']) * 1000
- self.origonalVertexes *= scale
+ self.vertexes *= scale
self._base = None
self._cur = None
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
-G92 X0 Y0 Z0 E0 ;reset software position to front/left/z=0.0
G1 Z15.0 F{max_z_speed} ;move the platform down 15mm
#BUILD_TARGET=win32
#BUILD_TARGET=linux
#BUILD_TARGET=darwin
+#BUILD_TARGET=debian
##Do we need to create the final archive
ARCHIVE_FOR_DISTRIBUTION=1
exit
fi
+#############################
+# Debian .deb
+#############################
+
+if [ "$BUILD_TARGET" = "debian" ]; then
+ git clone https://github.com/GreatFruitOmsk/Power
+ rm -rf scripts/linux/debian/usr/share/cura
+ mkdir -p scripts/linux/debian/usr/share/cura
+ cp -a Cura scripts/linux/debian/usr/share/cura/
+ cp scripts/linux/cura.py scripts/linux/debian/usr/share/cura/
+ cp -a Power/power scripts/linux/debian/usr/share/cura/
+ echo $BUILD_NAME > scripts/linux/debian/usr/share/cura/Cura/version
+ sudo chown root:root scripts/linux/debian -R
+ sudo chmod 755 scripts/linux/debian/DEBIAN/*
+ cd scripts/linux
+ dpkg-deb --build debian ${TARGET_DIR}.deb
+ sudo chown `id -un`:`id -gn` debian -R
+ exit
+fi
#############################
# Rest
import os, sys
+sys.path.insert(1, os.path.dirname(__file__))
+
try:
import OpenGL
import wx
exit(1)
-sys.path.insert(1, os.path.dirname(__file__))
import Cura.cura as cura
--- /dev/null
+Package: cura
+Version: 13.03-1
+Section: misc
+Priority: optional
+Architecture: all
+Essential: no
+Depends: python-wxgtk2.8, python-opengl, python-serial, python-numpy, pypy
+Maintainer: Daid <daid303@gmail.com>
+Provides: cura
+Installed-Size: 10000
+Description: Cura is a full software solution for 3D printing,
+ aimed at RepRaps and the Ultimaker. It's free software payed for
+ and maintained by Ultimaker.
+
--- /dev/null
+[Desktop Entry]
+Type=Application
+Name=Cura
+Comment=Cura
+Icon=/usr/share/cura/Cura/resources/images/c.png
+Exec=/usr/bin/python /usr/share/cura/cura.py
+StartupNotify=true
+Terminal=false
+Categories=GNOME;GTK;Utility;