Yet Another Gcode Viewer
by jonathanw, published
This is a fast 3D Gcode Viewer for Reprap-style 3D printers, in Python and OpenGL (via pyglet)
It was written since I could not find a visualizer that fitted my needs, i.e:
* Load large files painlessly
* Let me choose the layer to display
* Color segments according to function
* Show a full 3D view for better undertanding of the code.
Designed in Ubuntu Linux; Expected to work in any Linux, Windows or OS X
Full code at github.com/jonathanwin/yagv and attached
* python 2.x (2.7.3 tested)
* pyglet 1.1+ (1.1.4 tested)
* By default, open data/hana_swimsuit_fv_solid_v1.gcode if no file specified
* Colors segments according to their type:
* flying the head to the next extrusion point
* retracting filament
* restoring filament
* Allows displaying layers independently to examine them.
* Automagically splits the gcode into layers.
* Automatic scaling to fit the window.
* Zoom and rotation (Panning planned).
* Panning for close inspection not yet supported.
* Retract/restore detected but invisible (0-length segments).
* Designed with Slic3r output in mind, may not support other slicing programs (suggestions/patches welcome).
* Some gcodes unsupported:
* G91: Set to Relative Positioning (used by some slicers)
* G20: Set Units to Inches (usage unknown)
* Arcs (G2 & G3 ?)
Supplied demo gcode is a slice of thingiverse.com/thing:5176 (loaded if called with no file)
Since I started this, hudbrog published his very nice GCode Analyzer/Visualizer; check it out: thingiverse.com/thing:35248
Recent Commentsview all
Thanks for your interest :)
You did well to comment, looks like I don't get automatic notifications for new issues.
Contributions are very welcome indeed :)
Relative positioning support would be nice, it should indeed be quite simple. I haven't started on it myself yet.
I have done some improvement on model centering, but haven't released it -- guess I should ;)
I do plan on model moving, but haven't gotten anywhere with that yet. Maybe I (we) need to borrow the (slightly complex) dynamics from Meshlab?
Thanks for sharing this program! I just posted an issue on github but I want to post it here too: I love the design of this program and want to contribute, especially to add support for relative positioning (as I have to use this since I have some issues with absolute pos.) Maybe there are other features I can add in the future (I don't see a "move view" feature but maybe I just didn't see it), please let me know if you're still interested in improving this program.
Liked Byview all
Give a Shout Out
Install python 2 and pyglet.
Make sure the yagv file is executable, run "./yagv [file.gcode]"
Alternatively, setup a symlink to the yagv executable in your PATH, or add the yagv folder to the PATH
Under Windows, you may need to run "python path\to\yagv file.gcode" instead (feedback welcome)
You must be logged in to post a comment.