Phyton extensions development: current svg file name

Post questions on how to use or achieve an effect in Inkscape.
r.camboni
Posts: 1
Joined: Fri Sep 17, 2010 6:17 pm

Phyton extensions development: current svg file name

Postby r.camboni » Fri Sep 17, 2010 6:29 pm

Hello,
is there a way, within a phyton extension, to:
1) get the opened svg file current name (the field svg_file in inkex.Effect actually gives you the temporary file name)

2) issue a file save command

3) in case the extension did any change to the svg etree before issuing a PNG export
(i.e. command : "inkex -e 'myPngFile.PNG' {0} ".format(inkex.effect.svg_file)),
is the command would export the image as it was BEFORE the change: how can I export it as it is AFTER?

Thanks in advance
Roberto

Return to “Help with using Inkscape”