-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoriga_cylindrical_template.inx
executable file
·146 lines (137 loc) · 10.8 KB
/
origa_cylindrical_template.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<!-- Name of effect -->
<name>Cylindrical template effect</name>
<!-- Name of id -->
<id>org.inkscape.Origami_patterns.cylindrical_template</id>
<dependency type="executable" location="extensions">OrigamiPatterns</dependency>
<dependency type="executable" location="extensions">simplestyle.py</dependency>
<!-- start notebook -->
<param name='active-tab' type="notebook">
<!-- Change this first page, fill with desired parameters and help texts-->
<page name="options" gui-text="Options">
<separator/>
<label>Minimum necessary parameters for Cylindrical origami types :</param>
<param name="radius" type="float" max="10000" precision="3" gui-text="Radius of cylinder">10.0</param>
<param name="sides" type="int" min="3" max="25" gui-text="Number of sides of polygon">6</param>
<param name="rows" type="int" min="1" max="100" gui-text="Number of cells">3</param>
<separator/>
<param name="length" type="float" max="10000" precision="3" gui-text="Length">10.0</param>
<param name="angle" type="int" min="0" max="45" gui-text="Rotation angle (degree)">0</param>
<label>The .inx file defines the bridge between Inkscape's interface and the python script.</label>
<separator/>
<hbox>
<param name="simulation_mode" type="bool" gui-text="Simulation mode (?)"
gui-description="'Simulation mode' bypasses most style preferences to quickly switch between an OrigamiSimulator-compatible standard and your own chosen style (for laser cutting, for example).">
true</param>
<spacer size="expand"/>
<param name="units" type="optiongroup" appearance="combo" gui-text="">
<option value="mm">mm</option>
<option value="cm">cm</option>
<option value="in">in</option>
<option value="pt">pt</option>
<option value="px">px</option></param>
</hbox>
<separator/>
</page>
<!-- Next page define common options for every Cylindrical Pattern -->
<page name="slots" gui-text="Slots">
<param name="extra_column" type="bool" gui-text="Extra column?">false</param>
<separator/>
<param name="add_base_slot" type="bool" gui-text="Add base slots?">false</param>
<param name="base_slot_position" type="optiongroup" gui-text="Base slot position:" >
<option value="-1">Top</option>
<option value="0">Center</option>
<option value="1">Bottom</option>
</param>
<param name="base_height" type="float" max="10000" precision="3" gui-text="Height of base">5.0</param>
<param name="base_slot_height" type="float" max="10000" precision="3" gui-text="Height of base slot">3.0</param>
<param name="base_slot_width" type="float" max="10000" precision="3" gui-text="Width of base slow">3.0</param>
<separator/>
<param name="add_middle_slot" type="bool" gui-text="Add slots between cells?">false</param>
<param name="middle_slot_position" type="optiongroup" gui-text="Middle slot position:" >
<option value="-1">Top</option>
<option value="0">Center</option>
<option value="1">Bottom</option>
</param>
<param name="distance" type="float" max="10000" precision="3" gui-text="Distance between cells">3.0</param>
<param name="middle_slot_height" type="float" max="10000" precision="3" gui-text="Height of slots between cells">3.0</param>
<param name="middle_slot_width" type="float" max="10000" precision="3" gui-text="Width of slots between cells">3.0</param>
</page>
<!-- Leave next pages alone, they define common options for every Pattern -->
<page name="mountains" gui-text="Mountain creases">
<param name="mountain_bool" type="bool" gui-text="Draw mountains?">true</param>
<param name="mountain_bool_only" type="bool" gui-text="Draw ONLY mountains?">false</param>
<param name="mountain_dashes_bool" type="bool" gui-text="Dashed strokes?">true</param>
<param name="mountain_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Mountain dash + gap length">1</param>
<param name="mountain_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Mountain dash duty cycle">0.5</param>
<param name="mountain_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of mountain strokes">0.1</param>
<param name="mountain_stroke_color" type="color" appearance="colorbutton" gui-text="Mountain creases color: ">4278190335</param>
</page>
<page name="valleys" gui-text="Valley creases">
<param name="valley_bool" type="bool" gui-text="Draw valley?">true</param>
<param name="valley_bool_only" type="bool" gui-text="Draw ONLY valleys?">false</param>
<param name="valley_dashes_bool" type="bool" gui-text="Dashed strokes?">true</param>
<param name="valley_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Valley dash + gap length">1</param>
<param name="valley_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Valley dash duty cycle">0.25</param>
<param name="valley_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of valley strokes">0.1</param>
<param name="valley_stroke_color" type="color" appearance="colorbutton" gui-text="Valley creases color: ">65535</param>
</page>
<page name="edge" gui-text="Edge">
<param name="edge_bool" type="bool" gui-text="Draw edges?">true</param>
<param name="edge_bool_only" type="bool" gui-text="Draw ONLY edges?">false</param>
<param name="edge_single_path" type="bool" gui-text="Edges as single path?">true</param>
<param name="edge_dashes_bool" type="bool" gui-text="Dashed strokes?">false</param>
<param name="edge_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Edge dash + gap length">1</param>
<param name="edge_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Edge dash duty cycle">0.25</param>
<param name="edge_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of edge strokes">0.1</param>
<param name="edge_stroke_color" type="color" appearance="colorbutton" gui-text="Edge color: ">255</param>
</page>
<page name="vertices" gui-text="Vertices">
<param name="vertex_bool" type="bool" gui-text="Draw vertices?">true</param>
<param name="vertex_bool_only" type="bool" gui-text="Draw ONLY vertices?">false</param>
<param name="vertex_radius" type="float" min="0.01" max="50" appearance="full" gui-text="Radius of vertices">0.1</param>
<param name="vertex_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of vertex strokes">0.1</param>
<param name="vertex_stroke_color" type="color" appearance="colorbutton" gui-text="Vertices' color: ">255</param>
</page>
<!-- UNCOMMENT UNIVERSAL CREASES, CUTS AND/OR SEMICREASES IF NEEDED-->
<!-- <page name="universal" gui-text="Universal creases">-->
<!-- <param name="universal_bool" type="bool" gui-text="Draw universal creases?">true</param>-->
<!-- <param name="universal_bool_only" type="bool" gui-text="Draw ONLY universal creases?">false</param>-->
<!-- <param name="universal_dashes_bool" type="bool" gui-text="Dashed strokes?">false</param>-->
<!-- <param name="universal_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Universal dash + gap length">1</param>-->
<!-- <param name="universal_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Universal dash duty cycle">0.25</param>-->
<!-- <param name="universal_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of universal strokes">0.1</param> -->
<!-- <param name="universal_stroke_color" type="color" appearance="colorbutton" gui-text="Universal creases color: ">4278255615</param>-->
<!-- </page>-->
<!-- <page name="semicrease" gui-text="Semicreases">-->
<!-- <param name="semicrease_bool" type="bool" gui-text="Draw semicreases?">true</param>-->
<!-- <param name="semicrease_bool_only" type="bool" gui-text="Draw ONLY semicreases?">false</param>-->
<!-- <param name="semicrease_dashes_bool" type="bool" gui-text="Dashed strokes?">false</param>-->
<!-- <param name="semicrease_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Semicrease dash + gap length">1</param>-->
<!-- <param name="semicrease_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Semicrease dash duty cycle">0.25</param>-->
<!-- <param name="semicrease_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of semicrease strokes">0.1</param>-->
<!-- <param name="semicrease_stroke_color" type="color" appearance="colorbutton" gui-text="Semicreases color: ">4294902015</param>-->
<!-- </page>-->
<!-- <page name="cuts" gui-text="Cuts">-->
<!-- <param name="cut_bool" type="bool" gui-text="Draw cuts?">true</param>-->
<!-- <param name="cut_bool_only" type="bool" gui-text="Draw ONLY cuts?">true</param>-->
<!-- <param name="cut_dashes_bool" type="bool" gui-text="Dashed strokes?">false</param>-->
<!-- <param name="cut_dashes_len" type="float" min="0.1" max="10" appearance="full" precision="2" gui-text="Cut dash + gap length">1</param>-->
<!-- <param name="cut_dashes_duty" type="float" min="0.1" max="1" appearance="full" precision="2" gui-text="Cut dash duty cycle">0.25</param>-->
<!-- <param name="cut_stroke_width" type="float" min="0.01" max="3" appearance="full" gui-text="Width of cut strokes">0.1</param>-->
<!-- <param name="cut_stroke_color" type="color" appearance="colorbutton" gui-text="Cut creases color: ">16711935</param>-->
<!-- </page>-->
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Origami Patterns">
<submenu name="* Template submenu" />
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">OrigamiPatterns/cylindrical_template.py</command>
</script>
</inkscape-extension>