On Wed, 2005-11-23 at 14:37 +0100, Pim Snel wrote:
I've been busy creating my first extention for inkscape which is also my first python script. Though it needs some work we use it allready and it's is quite usefull.
Very cool. This is an oft requested feature.
To solve the known problems I've a question: Is there a possibility to give a "save doc" command from inside a python script to inkscape? This would fix all above problems. If someone has another solution to solve these problems please tell me.
Also another question: Is it possible to put an extention function in the File Menu next to e.g. "Save as"?
Yes, most definitely. Actually, most of the extensions in use today are in the Open/Save dialogs, the fact that you didn't notice is a good thing :)
What you probably have in your .inx file now is an <effect> block, you'll want to replace that with an <output> block. Here is an example:
http://cvs.sourceforge.net/viewcvs.py/inkscape/inkscape/share/extensions/ai_...
I don't know off hand what other questions you might have, so please ask them!
Also, please post your work to the list or the patch tracker. I'm sure that some people will find it useful even in an uncompleted form.
--Ted