Advertisements

YAGV Hackage

I’ve been using YAGV (Yet Another G-Code Viewer) as a quick command-line Guilloché visualizer, even though it’s really intended for 3D printing previews:

YAGV previewer.png
YAGV previewer.png

Oddly (for a command-line program), it (seems to) lack any obvious keyboard shortcut to bail out; none of my usual finger macros work.

A quick hack to the main /usr/share/yagv/yagv file makes Ctrl-Q bail out, thusly:

diff yagv /usr/share/yagv/yagv 
18a19
> import sys
364a366,367
> 		if symbol==pyglet.window.key.Q and modifiers & pyglet.window.key.MOD_CTRL:
> 			sys.exit()

I tacked the code onto an existing issue, but yagv may be a defunct project. Tweaking the source works for me.

The Ubuntu 18.04 LTS repo has what claims to be version 0.4, but the yagv GitHub repository (also claiming to be 0.4) includes code ignoring G-Code comments. Best to build the files from source (which, being Python, they already are), then add my Ctrl-Q hack, because my GCMC Guilloché generator adds plenty of comments.

Advertisements

,

  1. #1 by RCPete on 2019-02-16 - 14:42

    The first thing that came up on a search was Yet Another Ghostscript Viewer. I guess that means it’s yet another acronym failure.

    (I see WordPress is now requiring manual entry of email and handle for non-registered users for each comment. As commonly stated on another blog, WordPress delenda est.)

    • #2 by Ed on 2019-02-17 - 09:29

      It’s time to migrate this whole affair elsewhere, if only to simplify the process I go through to create the posts, but I really don’t want to become a sysop. The sticking points seem to be managing comments (i.e. killing spam) and keeping up with security patches.

      Bleh & similar remarks …

Spam comments always vanish. Comment moderation may cause a delay.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s