added path select in guillotine plus

This commit is contained in:
leyghisbb 2020-08-30 11:23:40 +02:00
parent 82fa7efd18
commit 15e9c09e8c
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Guillotine Plus</name> <name>Guillotine Plus</name>
<id>fablabchemnitz.de.guillotine_plus</id> <id>fablabchemnitz.de.guillotine_plus</id>
<param name="directory" type="string" gui-text="Directory to save images to:">~/</param> <param name="directory" type="path" mode="folder" gui-text="Directory to save images to:">~/</param>
<param name="image" type="string" gui-text="Image name (without extension):">guillotined</param> <param name="image" type="string" gui-text="Image name (without extension):">guillotined</param>
<param name="dpi" type="int" gui-text="DPI" min="1" max="10000">300</param> <param name="dpi" type="int" gui-text="DPI" min="1" max="10000">300</param>
<param name="ignore" type="bool" gui-text="Ignore these settings and use export hints">false</param> <param name="ignore" type="bool" gui-text="Ignore these settings and use export hints">false</param>

View File

@ -174,10 +174,9 @@ class Guillotine(inkex.EffectExtension):
output_files.append(fname) output_files.append(fname)
self.export_slice(slico, fname) self.export_slice(slico, fname)
self.debug("The sliced bitmaps have been saved as:" + "\n\n" + "\n".join(output_files)) #self.debug("The sliced bitmaps have been saved as:" + "\n\n" + "\n".join(output_files))
def effect(self): def effect(self):
self.export_slices(self.get_slices()) self.export_slices(self.get_slices())
if __name__ == "__main__": Guillotine().run()
Guillotine().run()