Mario Voigt
4175b377bd
's/fablabchemnitz_//g' *.inx;sed -i 's/>fablabchemnitz_/>/g' *.inx;sed -i 's/fablabchemnitz_//g' *.py; rename 's/fablabchemnitz_//g' *.svg"
33 lines
1.7 KiB
XML
33 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
|
<name>Scale To Path Length</name>
|
|
<id>fablabchemnitz.de.paste_length</id>
|
|
<param name="tab" type="notebook">
|
|
<page name="pasteLength" gui-text="Paste Length">
|
|
<param name="scaleFrom" type="optiongroup" appearance="combo" gui-text="Scale From:">
|
|
<option value="center">Center</option>
|
|
<option value="topLeft">Top Left</option>
|
|
<option value="topRight">Top Right</option>
|
|
<option value="bottomLeft">Bottom Left</option>
|
|
<option value="bottomRight">Bottom Right</option>
|
|
</param>
|
|
<param name="scale" type="float" gui-text="Scale Factor:">1</param>
|
|
<param name="precision" type="int" default="5" min="0" max="10" gui-text="Precision:">5</param>
|
|
</page>
|
|
<page name="desc" gui-text="Help">
|
|
<param name="pasteLengthhelp" type="description" xml:space="preserve">This effect makes the length of all the destination paths the same as that of the source path, while maintaining their shapes. The source is the topmost path in the selection. Precision field denotes the number of significant digits, to which the length is rounded.
|
|
</param>
|
|
</page>
|
|
</param>
|
|
<effect>
|
|
<object-type>path</object-type>
|
|
<effects-menu>
|
|
<submenu name="FabLab Chemnitz">
|
|
<submenu name="Modify existing Path(s)"/>
|
|
</submenu>
|
|
</effects-menu>
|
|
</effect>
|
|
<script>
|
|
<command location="inx" interpreter="python">paste_length.py</command>
|
|
</script>
|
|
</inkscape-extension> |