Plugin for VisiCut (Save SVG and launch program)

Discussion about writing code for Inkscape.
thomas.oster
Posts: 2
Joined: Fri Mar 16, 2012 3:56 pm

Plugin for VisiCut (Save SVG and launch program)

Postby thomas.oster » Fri Mar 16, 2012 4:13 pm

Hi,

I developed a software called VisiCut (http://visicut.org) which enables Windows, Linux and Mac OSX users to operate a lasercutter without additional drivers. Most lasercutters are restricted to be used on Windows with CorelDRAW at the moment, so VisiCut and Inkscape would be a great alternative.

For a good user experience it would be nice, if there was a toolbar button or at least a menu entry which opens the current version of the svg file in VisiCut.

This means I basically need a plugin, which is able to
- be launched via toolbar (if possible)
- save the current state as SVG (preferrable only selected elements if possible)
- and run a script.

I searched a bit, but there does not seem an easy tutorial and it would take much time for me to dig into this. I thought for people with experience, it should be about five minitues to write that plugin, so if anyone is interested, I would really appreciate it.

cheers

T

thomas.oster
Posts: 2
Joined: Fri Mar 16, 2012 3:56 pm

Re: Plugin for VisiCut (Save SVG and launch program)

Postby thomas.oster » Mon Mar 26, 2012 7:26 am

Hi,

I succeeded in creating an inkscape extension, which strips down the given SVG to the selected components and launches my VisiCut software on it.

Since my Software needs some time to load, I would like the software to stay open, while the user makes further modifications in Inkscape and runs my extension again.

Is it possible to make Inkscape NOT wait until the script is finished? I tried forking, running the program as daemon thread (python subprocess API) etc, but Inkscape always waites until my program finished.


Return to “Programming”