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_scaletosize.inx

33 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-08-04 16:39:16 +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 Size</name>
2020-08-04 16:39:16 +02:00
<id>fablabchemnitz.de.scaletosize</id>
2020-08-07 20:19:46 +02:00
<param name="unit" gui-text="Unit" type="optiongroup">
2020-08-04 16:39:16 +02:00
<option value="mm">mm</option>
<option value="cm">cm</option>
<option value="m">m</option>
<option value="in">in</option>
<option value="pt">pt</option>
<option value="px">px</option>
</param>
2020-08-07 20:19:46 +02:00
<param name="expected_size" type="float" min="0.001" max="10000.0" gui-text="Expected size: ">10.0</param>
<param name="scale_type" type="optiongroup" gui-text="Scaling type: ">
2020-08-04 16:39:16 +02:00
<option value="Horizontal">Horizontal</option>
<option value="Vertical">Vertical</option>
<option value="Uniform">Uniform</option>
</param>
2020-08-07 20:19:46 +02:00
<page name="desc" gui-text="Help">
<param name="description" type="description" xml:space="preserve">This effect will measure the selected paths and scale them to have the given size. Does not work for objects (you need to convert)!</param>
2020-08-04 16:39:16 +02:00
</page>
<effect>
<object-type>all</object-type>
<effects-menu>
2020-08-07 20:19:46 +02:00
<submenu name="FabLab Chemnitz">
<submenu name="Modify existing Path(s)"/>
2020-08-04 16:39:16 +02:00
</submenu>
</effects-menu>
</effect>
<script>
2020-08-13 14:51:38 +02:00
<command location="inx" interpreter="python">fablabchemnitz_scaletosize.py</command>
2020-08-04 16:39:16 +02:00
</script>
</inkscape-extension>