All interaction with the svg involves the XML representation. In you example, to create a new line you would add a bezzier curve objext into the DOM. (I think that is the right term). Fortunately, the xml handling code is available in python. Check out existind scripts for examples.
-Rob A>
On 7/1/09, Maarten van der Velde <Maarten.van-der-Velde@...2171...> wrote:
Hey,
I'd like to write a Python script in Inkscape, but I cannot find something like a straightforward "API" or something. I have seriously Googled quite a bit on it, but everything looks horribly complicated. Is there a straightforward way for creating a line from A to B, for example? Or does everything I want to do in Python require some complicated XML handling?
Thanks,
Maarten
On 6/30/09 12:16 PM, "Jasper van de Gronde" <th.v.d.gronde@...226...> wrote:
And please be sure to file a bug/feature request at http://bugs.launchpad.net/inkscape/
In the end there will obviously always be cases where Inkscape is too slow, but Inkscape could most definitely be faster in some cases. And just locking/unlocking the layer should (from an intuitive standpoint) NOT cause such a big pause.
Dave M G wrote:
Donn,
Thank you for responding.
I have long moaned that "Nodes mean slow" :( I have a fast machine and 2gigs of RAM. It makes no difference. I think it's all the looping through those long lists of nodes....
You are doomed. Unless you can simplify or chop-up your comic page into frames and assemble them later in Gimp.
Okay. While it's a little disappointing that there isn't a way to optimize the file for better performance, it's good to know that at least I'm not doing something wrong.
I'll export the paths into a PNG and handle the colouring in Photoshop or GIMP. It means committing to rasterizing the images sooner in my process than I had hoped, but hey, life is full of compromises.
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Maarten van der Velde graphic designer
Powel ASA Klæbuveien 194, NO-7037 Trondheim, NORWAY Phone: +47 73 80 45 00 - Fax: +47 73 80 45 01 Direct line: +47 73 80 46 21 - Mobile: +47 48 16 46 21 / +31 (0) 6 30 80 95 91 Email: Maarten.van-der-Velde@...2171... http://www.powel.com/
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
www.powel.no
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user