Example #1
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateMultiply = preferences.BooleanPreference().getFromValue(
         'Activate Multiply:', False)
     self.archive.append(self.activateMultiply)
     self.centerX = preferences.FloatPreference().getFromValue(
         'Center X (millimeters):', 0.0)
     self.archive.append(self.centerX)
     self.centerY = preferences.FloatPreference().getFromValue(
         'Center Y (millimeters):', 0.0)
     self.archive.append(self.centerY)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Multiplied', '')
     self.archive.append(self.fileNameInput)
     self.numberOfColumns = preferences.IntPreference().getFromValue(
         'Number of Columns (integer):', 1)
     self.archive.append(self.numberOfColumns)
     self.numberOfRows = preferences.IntPreference().getFromValue(
         'Number of Rows (integer):', 1)
     self.archive.append(self.numberOfRows)
     self.separationOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Separation over Extrusion Width (ratio):', 15.0)
     self.archive.append(self.separationOverExtrusionWidth)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Multiply'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.multiply.html')
Example #2
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateOozebane = preferences.BooleanPreference().getFromValue( 'Activate Oozebane', False )
		self.archive.append( self.activateOozebane )
		self.afterStartupDistance = preferences.FloatPreference().getFromValue( 'After Startup Distance (millimeters):', 1.2 )
		self.archive.append( self.afterStartupDistance )
		self.earlyShutdownDistance = preferences.FloatPreference().getFromValue( 'Early Shutdown Distance (millimeters):', 1.2 )
		self.archive.append( self.earlyShutdownDistance )
		self.earlyStartupDistanceConstant = preferences.FloatPreference().getFromValue( 'Early Startup Distance Constant (millimeters):', 20.0 )
		self.archive.append( self.earlyStartupDistanceConstant )
		self.earlyStartupMaximumDistance = preferences.FloatPreference().getFromValue( 'Early Startup Maximum Distance (millimeters):', 1.2 )
		self.archive.append( self.earlyStartupMaximumDistance )
		self.firstEarlyStartupDistance = preferences.FloatPreference().getFromValue( 'First Early Startup Distance (millimeters):', 25.0 )
		self.archive.append( self.firstEarlyStartupDistance )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Oozebaned', '' )
		self.archive.append( self.fileNameInput )
		self.minimumDistanceForEarlyStartup = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Startup (millimeters):', 0.0 )
		self.archive.append( self.minimumDistanceForEarlyStartup )
		self.minimumDistanceForEarlyShutdown = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Shutdown (millimeters):', 0.0 )
		self.archive.append( self.minimumDistanceForEarlyShutdown )
		self.slowdownStartupSteps = preferences.IntPreference().getFromValue( 'Slowdown Startup Steps (positive integer):', 3 )
		self.archive.append( self.slowdownStartupSteps )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Oozebane'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.oozebane.html' )
Example #3
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateTower = preferences.BooleanPreference().getFromValue( 'Activate Tower', True )
		self.archive.append( self.activateTower )
		self.extruderPossibleCollisionConeAngle = preferences.FloatPreference().getFromValue( 'Extruder Possible Collision Cone Angle (degrees):', 60.0 )
		self.archive.append( self.extruderPossibleCollisionConeAngle )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Towered', '' )
		self.archive.append( self.fileNameInput )
		self.maximumTowerHeight = preferences.IntPreference().getFromValue( 'Maximum Tower Height (layers):', 0 )
		self.archive.append( self.maximumTowerHeight )
		self.towerStartLayer = preferences.IntPreference().getFromValue( 'Tower Start Layer (integer):', 1 )
		self.archive.append( self.towerStartLayer )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Tower'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.tower.html' )
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateVectorwrite = preferences.BooleanPreference().getFromValue( 'Activate Vectorwrite', False )
		self.archive.append( self.activateVectorwrite )
		self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to Write Vector Graphics for', '' )
		self.archive.append( self.fileNameInput )
		self.minimumNumberLayersMultipleFiles = preferences.IntPreference().getFromValue( 'Minimum Number of Layers for Multiple Files (integer):', 10 )
		self.archive.append( self.minimumNumberLayersMultipleFiles )
		self.pixelsWidthExtrusion = preferences.FloatPreference().getFromValue( 'Pixels over Extrusion Width (ratio):', 5.0 )
		self.archive.append( self.pixelsWidthExtrusion )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Write Vector Graphics'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.analyze_plugins.vectorwrite.html' )
Example #5
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateWipe = preferences.BooleanPreference().getFromValue(
         'Activate Wipe', False)
     self.archive.append(self.activateWipe)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Wiped', '')
     self.archive.append(self.fileNameInput)
     self.locationArrivalX = preferences.FloatPreference().getFromValue(
         'Location Arrival X (mm):', -70.0)
     self.archive.append(self.locationArrivalX)
     self.locationArrivalY = preferences.FloatPreference().getFromValue(
         'Location Arrival Y (mm):', -50.0)
     self.archive.append(self.locationArrivalY)
     self.locationArrivalZ = preferences.FloatPreference().getFromValue(
         'Location Arrival Z (mm):', 50.0)
     self.archive.append(self.locationArrivalZ)
     self.locationDepartureX = preferences.FloatPreference().getFromValue(
         'Location Departure X (mm):', -70.0)
     self.archive.append(self.locationDepartureX)
     self.locationDepartureY = preferences.FloatPreference().getFromValue(
         'Location Departure Y (mm):', -40.0)
     self.archive.append(self.locationDepartureY)
     self.locationDepartureZ = preferences.FloatPreference().getFromValue(
         'Location Departure Z (mm):', 50.0)
     self.archive.append(self.locationDepartureZ)
     self.locationWipeX = preferences.FloatPreference().getFromValue(
         'Location Wipe X (mm):', -70.0)
     self.archive.append(self.locationWipeX)
     self.locationWipeY = preferences.FloatPreference().getFromValue(
         'Location Wipe Y (mm):', -70.0)
     self.archive.append(self.locationWipeY)
     self.locationWipeZ = preferences.FloatPreference().getFromValue(
         'Location Wipe Z (mm):', 50.0)
     self.archive.append(self.locationWipeZ)
     self.wipePeriod = preferences.IntPreference().getFromValue(
         'Wipe Period (layers):', 3)
     self.archive.append(self.wipePeriod)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Wipe'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.wipe.html')
Example #6
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		materialName = material.getSelectedMaterial()
		#Set the default preferences.
		self.archive = []
		self.activateRaft = preferences.BooleanPreference().getFromValue( 'Activate Raft:', True )
		self.archive.append( self.activateRaft )
		self.addRaftElevateNozzleOrbitSetAltitude = preferences.BooleanPreference().getFromValue( 'Add Raft, Elevate Nozzle, Orbit and Set Altitude:', True )
		self.archive.append( self.addRaftElevateNozzleOrbitSetAltitude )
		self.baseInfillDensity = preferences.FloatPreference().getFromValue( 'Base Infill Density (ratio):', 0.5 )
		self.archive.append( self.baseInfillDensity )
		self.baseLayerThicknessOverLayerThickness = preferences.FloatPreference().getFromValue( 'Base Layer Thickness over Layer Thickness:', 2.0 )
		self.archive.append( self.baseLayerThicknessOverLayerThickness )
		self.baseLayers = preferences.IntPreference().getFromValue( 'Base Layers (integer):', 1 )
		self.archive.append( self.baseLayers )
		self.baseNozzleLiftOverHalfBaseLayerThickness = preferences.FloatPreference().getFromValue( 'Base Nozzle Lift over Half Base Layer Thickness (ratio):', 0.75 )
		self.archive.append( self.baseNozzleLiftOverHalfBaseLayerThickness )
		self.bottomAltitude = preferences.FloatPreference().getFromValue( 'Bottom Altitude:', 0.0 )
		self.archive.append( self.bottomAltitude )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Rafted', '' )
		self.archive.append( self.fileNameInput )
		self.infillOverhang = preferences.FloatPreference().getFromValue( 'Infill Overhang (ratio):', 0.1 )
		self.archive.append( self.infillOverhang )
		self.interfaceInfillDensity = preferences.FloatPreference().getFromValue( 'Interface Infill Density (ratio):', 0.5 )
		self.archive.append( self.interfaceInfillDensity )
		self.interfaceLayerThicknessOverLayerThickness = preferences.FloatPreference().getFromValue( 'Interface Layer Thickness over Layer Thickness:', 1.0 )
		self.archive.append( self.interfaceLayerThicknessOverLayerThickness )
		self.interfaceLayers = preferences.IntPreference().getFromValue( 'Interface Layers (integer):', 2 )
		self.archive.append( self.interfaceLayers )
		self.interfaceNozzleLiftOverHalfInterfaceLayerThickness = preferences.FloatPreference().getFromValue( 'Interface Nozzle Lift over Half Interface Layer Thickness (ratio):', 1.0 )
		self.archive.append( self.interfaceNozzleLiftOverHalfInterfaceLayerThickness )
		self.material = preferences.LabelDisplay().getFromName( 'Material: ' + materialName )
		self.archive.append( self.material )
		self.operatingNozzleLiftOverHalfLayerThickness = preferences.FloatPreference().getFromValue( 'Operating Nozzle Lift over Half Layer Thickness (ratio):', 1.0 )
		self.archive.append( self.operatingNozzleLiftOverHalfLayerThickness )
		self.raftOutsetRadiusOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Raft Outset Radius over Extrusion Width (ratio):', 15.0 )
		self.archive.append( self.raftOutsetRadiusOverExtrusionWidth )
		self.supportInsetOverPerimeterExtrusionWidth = preferences.FloatPreference().getFromValue( 'Support Inset over Perimeter Extrusion Width (ratio):', 0.0 )
		self.archive.append( self.supportInsetOverPerimeterExtrusionWidth )
		supportRadio = []
		self.supportChoiceLabel = preferences.LabelDisplay().getFromName( 'Support Material Choice: ' )
		self.archive.append( self.supportChoiceLabel )
		self.supportChoiceNoSupportMaterial = preferences.Radio().getFromRadio( 'No Support Material', supportRadio, True )
		self.archive.append( self.supportChoiceNoSupportMaterial )
		self.supportChoiceSupportMateriaEverywhere = preferences.Radio().getFromRadio( 'Support Material Everywhere', supportRadio, False )
		self.archive.append( self.supportChoiceSupportMateriaEverywhere )
		self.supportChoiceSupportMaterialOnExteriorOnly = preferences.Radio().getFromRadio( 'Support Material on Exterior Only', supportRadio, False )
		self.archive.append( self.supportChoiceSupportMaterialOnExteriorOnly )
		self.supportMinimumAngle = preferences.FloatPreference().getFromValue( 'Support Minimum Angle (degrees):', 60.0 )
		self.archive.append( self.supportMinimumAngle )
		self.temperatureChangeBeforeTimeRaft = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Raft (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeBeforeTimeRaft )
		self.temperatureChangeTimeBeforeFirstLayerOutline = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before First Layer Outline (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeFirstLayerOutline )
		self.temperatureChangeTimeBeforeNextThreads = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Next Threads (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeNextThreads )
		self.temperatureChangeTimeBeforeSupportLayers = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Support Layers (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeSupportLayers )
		self.temperatureChangeTimeBeforeSupportedLayers = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Supported Layers (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeSupportedLayers )
		self.temperatureRaft = preferences.FloatPreference().getFromValue( 'Temperature of Raft (Celcius):', 200.0 )
		self.archive.append( self.temperatureRaft )
		self.temperatureShapeFirstLayerOutline = preferences.FloatPreference().getFromValue( 'Temperature of Shape First Layer Outline (Celcius):', 220.0 )
		self.archive.append( self.temperatureShapeFirstLayerOutline )
		self.temperatureShapeFirstLayerWithin = preferences.FloatPreference().getFromValue( 'Temperature of Shape First Layer Within (Celcius):', 195.0 )
		self.archive.append( self.temperatureShapeFirstLayerWithin )
		self.temperatureShapeNextLayers = preferences.FloatPreference().getFromValue( 'Temperature of Shape Next Layers (Celcius):', 230.0 )
		self.archive.append( self.temperatureShapeNextLayers )
		self.temperatureShapeSupportLayers = preferences.FloatPreference().getFromValue( 'Temperature of Support Layers (Celcius):', 200.0 )
		self.archive.append( self.temperatureShapeSupportLayers )
		self.temperatureShapeSupportedLayers = preferences.FloatPreference().getFromValue( 'Temperature of Supported Layers (Celcius):', 230.0 )
		self.archive.append( self.temperatureShapeSupportedLayers )
		self.windowPositionRaftPreferences = preferences.WindowPosition().getFromValue( 'windowPositionRaft Preferences', '0+0' )
		self.archive.append( self.windowPositionRaftPreferences )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Raft'
		self.fileNamePreferences = preferences.getPreferencesFilePath( 'raft_' + materialName + '.csv' )
		self.fileNameHelp = 'skeinforge_tools.raft.html'
		self.saveTitle = 'Save Preferences'
		self.title = 'Raft Preferences'