no parameters for output extensions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Kees Cook |
Bug Description
I am trying to write a custom output filter that
accepts parameters much like effects do, however,
Inkscape neither prompts for nor passes parameters to
output extensions.
I wrote a test extension and script. The script outputs
the passed parameters to STDERR. The only parameter
found was the name of the temp file.
As an effect, this worked just fine, including both the
file name and 2 parameters.
My (test) INX and script files are:
<inkscape-
<name>Test Output</name>
<id>
<dependency type="executable"
location=
<param name="opacity" gui-text="Opacity"
type="float" min="0.0" max="1.
<param name="color" gui-text="Color of shadow"
type="string"
<output>
</output>
<script>
<command reldir="extensions"
interpreter=
</script>
</inkscape-
#! perl -w
print STDERR join(' ', @ARGV) . "\n";
while (<>) { print; }
I'm not sure if this is a bug or intentional, but here is
the patch to fix it.