-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathliving_hinge.inx
67 lines (66 loc) · 3.43 KB
/
living_hinge.inx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Living Hinges</_name>
<id>net.buxtronix.living_hinge</id>
<dependency type="executable" location="inx">living_hinge.py</dependency>
<param name="tab" type="notebook">
<page name="straight_lattice" gui-text="Straight lattice">
<image>images/straight-lattice.png</image>
<param name="sl_length" type="int" min="0" max="200" gui-text="Length of elements" appearance="full">20</param>
<param name="sl_spacing" type="float" min="0" max="10" gui-text="Vertical element spacing" appearance="full">2</param>
<param name="sl_gap" type="float" min="0" max="10" gui-text="Element height" appearance="full">0</param>
<label xml:space="preserve">
</label>
</page>
<page name="diamond_lattice" gui-text="Diamond lattice">
<image>images/diamond-lattice.png</image>
<param name="dl_length" type="int" min="0" max="200" gui-text="Length of elements" appearance="full">20</param>
<param name="dl_spacing" type="float" min="0" max="10" gui-text="Vertical element spacing" appearance="full">4</param>
<param name="dl_curve" type="float" min="-1.0" max="1.0" gui-text="Curve of each element" appearance="full">0.5</param>
<label xml:space="preserve">
</label>
</page>
<page name="cross_lattice" gui-text="Cross lattice">
<image>images/cross-lattice.png</image>
<param name="cl_length" type="int" min="0" max="200" gui-text="Length of elements" appearance="full">20</param>
<param name="cl_spacing" type="float" min="0" max="10" gui-text="Vertical element spacing" appearance="full">6</param>
<label xml:space="preserve">
</label>
</page>
<page name="wavy_lattice" gui-text="Wavy lattice">
<image>images/wavy-lattice.png</image>
<param name="wl_length" type="int" min="0" max="200" gui-text="Length of elements" appearance="full">29</param>
<param name="wl_spacing" type="float" min="0" max="10" gui-text="Vertical element spacing" appearance="full">4</param>
<label xml:space="preserve">
</label>
</page>
<page name="about" gui-text="About/Help">
<label xml:space="preserve">
This extension renders Living Hinges, aka lattice hinges aka laser kerf bending.
These patterns allow otherwise rigid materials (eg wood, acrylic) to have bends formed in them.
</label>
<image>images/about.png</image>
<label appearance="url">https://github.com/buxtronix/living-hinge</label>
</page>
</param>
<param name="width" type="float" min="0" max="10000" gui-text="Width">100</param>
<param name="height" type="float" min="0" max="10000" gui-text="Height">100</param>
<param name="unit" gui-text="Unit for width/height" type="optiongroup" appearance="minimal">
<option value="mm">mm</option>
<option value="cm">cm</option>
<option value="in">in</option>
</param>
<label>If any object(s) are currently selected, their bounding boxes will be filled with the pattern
instead of using the above Width/Height. Slider dimensions are all millimetres.</label>
<separator/>
<param name="swatch" type="boolean" gui-text="Draw swatch card">false</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render"/>
</effects-menu>
</effect>
<script>
<command reldir="inx" interpreter="python">living_hinge.py</command>
</script>
</inkscape-extension>