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-0.92-deprecated/fablabchemnitz_living_hinge.inx

46 lines
2.2 KiB
Plaintext
Raw Normal View History

2019-11-14 20:05:10 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Living Hinge</_name>
<id>fablabchemnitz.de.living_hinge</id>
<dependency type="executable" location="extensions">fablabchemnitz_living_hinge.py</dependency>
<dependency type="executable" location="extensions">simpletransform.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="direction" _gui-text="Direction " type="enum">
<_item value="y">vertical cuts</_item>
<_item value="x">horizontal cuts</_item>
</param>
<param name="unit" _gui-text="Unit " type="enum">
<_item value="mm">mm</_item>
<_item value="cm">cm</_item>
<_item value="in">in</_item>
<_item value="px">px</_item>
</param>
<param name="cut_length" type="float" precision="2" _gui-text="cut length" min="1" max="1000">19.0</param>
<param name="gap_length" type="float" precision="2" _gui-text="gap length" min="1" max="1000">3.0</param>
<param name="sep_distance" type="float" precision="2" _gui-text="separation distance" min="1" max="1000">1.5</param>
<param name="help_text" type="description" xml:space="preserve">
This extension renders the lines to make the cuts for a living hinge. The cuts run in the choosen direction.
- direction: choose the direction of the cuts.
- cut length: the length of each cut.
- gap length: the separation between cut lines.
- separation distance: the separation distance between adjacent sets of cut lines.
The entered value for cut length will be adjusted so that an integer number of whole cut lines lies in the rectangle. The entered value for separation distance will be adjusted so that in integer number of cut lines lies in rectangle.
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="FabLab Chemnitz">
<submenu _name="Shape/Pattern from existing Object(s)"/>
</submenu>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">fablabchemnitz_living_hinge.py</command>
</script>
</inkscape-extension>