skeinforge_tools.analyze_plugins.skeinview ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/skeinview.py |
Skeinview is a script to display each layer of a gcode file.
The skeinview manual page is at:
http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Skeinview
Skeinview is derived from Nophead's preview script. The extruded lines are in the resistor colors red, orange, yellow, green, blue, purple & brown. When the extruder is off, the travel line is grey. Skeinview is useful for a detailed view of the extrusion, behold is better to see the orientation of the shape. To get an initial overview of the skein, when the skeinview display window appears, click the Soar button (double right arrow button beside the layer field).
Operation
Settings
Animation
Animation Line Quickening
Animation Slide Show Rate
Draw Arrows
Export Menu
Go Around Extruder Off Travel
Layers
Layer
Layer Extra Span
Line
Mouse Mode
Display Line
Viewpoint Move
Numeric Pointer
Scale
Screen Inset
Screen Horizontal Inset
Screen Vertical Inset
Width
Width of Extrusion Thread
Width of Selection Thread
Width of Travel Thread
Icons
Gcodes
Examples
Operation
The default 'Activate Skeinview' checkbox is on. When it is on, the functions described below will work when called from the skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether or not the 'Activate Skeinview' checkbox is on, when skeinview is run directly. Skeinview has trouble separating the layers when it reads gcode without comments.
Settings
Animation
Animation Line Quickening
Default is one.
The quickness of the tool animation over the quickness of the actual tool.
Animation Slide Show Rate
Default is two layers per second.
The rate, in layers per second, at which the layer changes when the soar or dive button is pressed..
Draw Arrows
Default is on.
When selected, arrows will be drawn at the end of each line segment.
Export Menu
When the submenu in the export menu item in the file menu is clicked, an export canvas dialog will be displayed, which can export the canvas to a file.
Go Around Extruder Off Travel
Default is off.
When selected, the display will include the travel when the extruder is off, which means it will include the nozzle wipe path if any.
Layers
Layer
Default is zero.
On the display window, the Up button increases the 'Layer' by one, and the Down button decreases the layer by one. When the layer displayed in the layer spin box is changed then <Return> is hit, the layer shown will be set to the spin box, to a mimimum of zero and to a maximum of the highest index layer.The Soar button increases the layer at the 'Animation Slide Show Rate', and the Dive (double left arrow button beside the layer field) button decreases the layer at the slide show rate.
Layer Extra Span
Default is zero.
The viewer will draw the layers in the range including the 'Layer' index and the 'Layer' index plus the 'Layer Extra Span'. If the 'Layer Extra Span' is negative, the layers viewed will start at the 'Layer' index, plus the 'Layer Extra Span', and go up to and include the 'Layer' index. If the 'Layer Extra Span' is zero, only the 'Layer' index layer will be displayed. If the 'Layer Extra Span' is positive, the layers viewed will start at the 'Layer' index, and go up to and include the 'Layer' index plus the 'Layer Extra Span'.
Line
Default is zero.
The index of the selected line on the layer that is highlighted when the 'Display Line' mouse tool is chosen. The line spin box up button increases the 'Line' by one. If the line index of the layer goes over the index of the last line, the layer index will be increased by one and the new line index will be zero. The down button decreases the line index by one. If the line index goes below the index of the first line, the layer index will be decreased by one and the new line index will be at the last line. When the line displayed in the line field is changed then <Return> is hit, the line shown will be set to the line field, to a mimimum of zero and to a maximum of the highest index line. The Soar button increases the line at the speed at which the extruder would move, times the 'Animation Line Quickening' ratio, and the Dive (double left arrow button beside the line field) button decreases the line at the animation line quickening ratio.
Mouse Mode
Default is 'Display Line'.
The mouse tool can be changed from the 'Mouse Mode' menu button or picture button. The mouse tools listen to the arrow keys when the canvas has the focus. Clicking in the canvas gives the canvas the focus, and when the canvas has the focus a thick black border is drawn around the canvas.
Display Line
The 'Display Line' tool will display the highlight the selected line, and display the file line count, counting from one, and the gcode line itself. When the 'Display Line' tool is active, clicking the canvas will select the nearest line to the mouse click.
Viewpoint Move
The 'Viewpoint Move' tool will move the viewpoint in the xy plane when the mouse is clicked and dragged on the canvas.
Numeric Pointer
Default is on.
When selected, the distance along the ruler of the arrow pointers will be drawn next to the pointers.
Scale
Default is ten.
The scale setting is the scale of the image in pixels per millimeter, the higher the number, the greater the size of the display.
The zoom in mouse tool will zoom in the display at the point where the mouse was clicked, increasing the scale by a factor of two. The zoom out tool will zoom out the display at the point where the mouse was clicked, decreasing the scale by a factor of two.
Screen Inset
Screen Horizontal Inset
Default is one hundred.
The "Screen Horizontal Inset" determines how much the canvas will be inset in the horizontal direction from the edge of screen, the higher the number the more it will be inset and the smaller it will be.
Screen Vertical Inset
Default is two hundred.
The "Screen Vertical Inset" determines how much the canvas will be inset in the vertical direction from the edge of screen, the higher the number the more it will be inset and the smaller it will be.
Width
The width of each type of thread and of each axis can be changed. If the width is set to zero, the thread will not be visible.
Width of Extrusion Thread
Default is two.
The "Width of Extrusion Thread" sets the width of the extrusion threads.
Width of Selection Thread
Default is six.
The "Width of Selection Thread" sets the width of the selected line.
Width of Travel Thread
Default is one.
The "Width of Travel Thread" sets the width of the grey extruder off travel threads.
Icons
The dive, soar and zoom icons are from Mark James' soarSilk icon set 1.3 at:
http://www.famfamfam.com/lab/icons/silk/
Gcodes
An explanation of the gcodes is at:
http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter
and at:
http://reprap.org/bin/view/Main/MCodeReference
A gode example is at:
http://forums.reprap.org/file.php?12,file=565
Examples
Below are examples of skeinview being used. These examples are run in a terminal in the folder which contains Screw Holder_penultimate.gcode and skeinview.py.
> python skeinview.py
This brings up the skeinview dialog.
> python skeinview.py Screw Holder_penultimate.gcode
This brings up the skeinview viewer to view each layer of a gcode file.
> python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import skeinview
>>> skeinview.main()
This brings up the skeinview dialog.
>>> skeinview.analyzeFile( 'Screw Holder_penultimate.gcode' )
This brings up the skeinview viewer to view each layer of a gcode file.
Classes | ||||||||||||||||||||||||
|
Functions | ||
|
Data | ||
__author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) |
Author | ||
Enrique Perez (perez_enrique@yahoo.com) |