Several questions about script extensions

Discussion about writing code for Inkscape.
klaten
Posts: 1
Joined: Tue Oct 09, 2012 4:02 am

Several questions about script extensions

Postby klaten » Sat Oct 27, 2012 11:46 am

Hi, I have a few questions about Inkscape's script extensions:

1. Is there some significance to the return value of the extension? That is can I simply return "0" for success and "1" for failure?
2. How does Inkscape know the difference between the three types (input, output, and effect) of script extensions? Is this specified somewhere in the .inx file?
3. For an "output" extension does Inkscape still expect an SVG file from the STDOUT of the script extension? If the extension is an "input" extension does Inkscape still supply the temporary SVG file?
4. Finally, what happens when an extension writes to STDERR? Where are the messages logged?

Thanks in advance,
klaten

Return to “Programming”