This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/fablabchemnitz_paste_length.inx
2020-08-30 12:36:33 +02:00

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">fablabchemnitz_paste_length.py</command>
</script>
</inkscape-extension>