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/paste_length.inx

33 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-07-30 01:16:18 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
2020-08-07 20:19:46 +02:00
<name>Scale To Path Length</name>
2020-07-30 01:16:18 +02:00
<id>fablabchemnitz.de.paste_length</id>
<param name="tab" type="notebook">
2020-08-07 20:19:46 +02:00
<page name="pasteLength" gui-text="Paste Length">
<param name="scaleFrom" type="optiongroup" appearance="combo" gui-text="Scale From:">
2020-08-15 04:12:30 +02:00
<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>
2020-07-30 01:16:18 +02:00
</param>
2020-08-07 20:19:46 +02:00
<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>
2020-07-30 01:16:18 +02:00
</page>
2020-08-07 20:19:46 +02:00
<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>
2020-07-30 01:16:18 +02:00
</page>
</param>
<effect>
<object-type>path</object-type>
<effects-menu>
2020-08-07 20:19:46 +02:00
<submenu name="FabLab Chemnitz">
<submenu name="Modify existing Path(s)"/>
2020-07-30 01:16:18 +02:00
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">paste_length.py</command>
2020-07-30 01:16:18 +02:00
</script>
</inkscape-extension>