I've posted this before, but here goes again -
What I am currently doing is organizing a cut page with Inkscape, saving that single color file as
/home/bruce/hpgl/newplot.ps
I then click a script called 'cut newplot.ps' which changes to the correct directory, generates a view using evince ( just to make sure I'm going to cut the right thing ) and then activates another script based on the one found at:
http://pldaniels.com/hpgl-distiller/ ( I changed a few things and am more than happy to share everything with anyone. )
Once I close the preview, the plotter does it's thing.
-----------------------------
I would like to create a menu item in Inkscape, but haven't figured that out yet.
Any links on how to make a custom menu item??
On Thu, 25 Sep 2008 10:44:01 -0400 "bruce westfall" <brucewestfall@...400...> wrote:
I've posted this before, but here goes again -
What I am currently doing is organizing a cut page with Inkscape, saving that single color file as
/home/bruce/hpgl/newplot.ps
This file you're saving, are you just saving the whole current inkscape file to this .ps file?
If so it probably wouldn't be too hard to make an inkscape python "Effect" which doesn't actually do anything to the inkscape document, but instead saves it (as above) and then runs the steps below.
I could make an example effect it you want.
Cheers -Terry
I then click a script called 'cut newplot.ps' which changes to the correct directory, generates a view using evince ( just to make sure I'm going to cut the right thing ) and then activates another script based on the one found at:
http://pldaniels.com/hpgl-distiller/ ( I changed a few things and am more than happy to share everything with anyone. )
Once I close the preview, the plotter does it's thing.
I would like to create a menu item in Inkscape, but haven't figured that out yet.
Any links on how to make a custom menu item??
On Thu, 25 Sep 2008 10:44:01 -0400 "bruce westfall" <brucewestfall@...400...> wrote:
I would like to create a menu item in Inkscape, but haven't figured that out yet.
I've attached two files, cutvinyl.inx and cutvinyl.py, which when placed in the ~/.inkscape/extensions directory at an Output menu to the Effects menu, which has one item, Cut Vinyl.
I ran into what I believe to be a bug:
https://bugs.launchpad.net/inkscape/+bug/276382
inkscape --without-gui --export-ps=del.ps del.svg
as a script command does not create postscript output, so the new menu item doesn't actually work for me, although it might work for you as I'm sure --export-ps has worked in the past.
Anyway, all the script does at present is save the document to a temporary .svg file, attempt (this is the bit that fails) to invoke a second instance of inkscape to convert it to PS, and then views it with the PS viewer 'gv'.
I suspect that you'll be able to follow the pattern to add the behavior you want, but if not let me know and I'll flesh it out a bit more.
Cheers -Terry
Hmm, seems to me that msg. took four days to appear on the list?
Cheers -Terry
Terry Brown-2 wrote:
I ran into what I believe to be a bug:
https://bugs.launchpad.net/inkscape/+bug/276382
inkscape --without-gui --export-ps=del.ps del.svg
as a script command does not create postscript output
it looks like this may work better on more recent development versions, https://bugs.launchpad.net/inkscape/+bug/276382/comments/1
hth, Alvin
On Sat, 4 Oct 2008 16:54:42 -0700 (PDT) Alvin Penner <penner@...1856...> wrote:
it looks like this may work better on more recent development versions, https://bugs.launchpad.net/inkscape/+bug/276382/comments/1
You're right, this seems to be ok in the current dev. build apart from the warning output, which could be suppressed.
So let me know if the script's enough to get you where you want or if you'd like a more specific version.
Cheers -Terry
participants (3)
-
Alvin Penner
-
bruce westfall
-
Terry Brown