forked from evil-mad/EggBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheggbot_twist.inx
executable file
·50 lines (44 loc) · 1.91 KB
/
eggbot_twist.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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Twist</_name>
<id>command.eggbot.contributed.twist</id>
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
<dependency type="executable" location="extensions">eggbot_twist.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<dependency type="executable" location="extensions">simplepath.py</dependency>
<dependency type="executable" location="extensions">simpletransform.py</dependency>
<dependency type="executable" location="extensions">simplestyle.py</dependency>
<dependency type="executable" location="extensions">cubicsuperpath.py</dependency>
<dependency type="executable" location="extensions">cspsubdiv.py</dependency>
<dependency type="executable" location="extensions">bezmisc.py</dependency>
<_param name="Header" type="description" xml:space="preserve">
Iteratively twist and self-inscribe
a polygon within itself.
The number of twists is how many
iterations to perform.
The step ratio is the fractional
distance along an edge to move each
vertex.
***
This extension is intended as an
example of how to write an Inkscape
extension for use with the Eggbot.
See the eggbot_twist.py file in the
Inkscape extensions directory for
this extensions' Python code.
***
</_param>
<param name="nSteps" type="int" min="1" max="100"
_gui-text=" Number of twists">8</param>
<param name="fRatio" type="float" min="-10" max="10" precision="5"
_gui-text=" Step ratio">0.15</param>
<effect needs-live-preview="false">
<object-type>all</object-type>
<effects-menu>
<submenu _name="EggBot Contributed"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">eggbot_twist.py</command>
</script>
</inkscape-extension>