
On this wiki page http://wiki.inkscape.org/wiki/index.php/ScriptingHOWTO
3 types of scripts are mentioned; - input - output - effect
This wiki page; http://wiki.inkscape.org/wiki/index.php/ExtensionArchitecture
says about another type of extension, 'Tools':
"Tools. Tools are the ways that you draw in Inkscape. Rectangle tool, circle tool, star tool... the goal is to eventually have the ability to add tools as extensions. (no code)"
For what I want to do, 'Tools' would be very useful.
Does the (no code) part mean that the 'Tools' bindings have not been written?
Thanks, Kent
On 8/2/07, Aaron Spike <aaron@...749...> wrote:
Kent Tenney wrote:
Lets say my script gets to this point text = file('filename').read()
is something of this sort possible?
document.addText(text)
Something of that sort, yes. Exactly what something depends on the xml library that you choose to use to process the svg. If you plan to follow suit, Inkscape 0.45 and prior has been using pyxml and Inkscape 0.46 and after will use the fantastic lxml library. You may also want to browse our extension docs on the wiki at http://wiki.inkscape.org/wiki/index.php/Category:Extensions and read through an extension script or two from those included with inkscape.
Aaron Spike