Removed deprecations from twist extension
This commit is contained in:
parent
f705ef2575
commit
423fafd352
@ -2,26 +2,7 @@
|
|||||||
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
|
||||||
<name>Twist</name>
|
<name>Twist</name>
|
||||||
<id>fablabchemnitz.de.twist</id>
|
<id>fablabchemnitz.de.twist</id>
|
||||||
<param name="Header" type="description" xml:space="preserve">
|
<label>Iteratively twist and self-inscribea 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.</label>
|
||||||
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="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>
|
<param name="fRatio" type="float" min="-10" max="10" precision="5" gui-text=" Step ratio">0.15</param>
|
||||||
<effect needs-live-preview="true">
|
<effect needs-live-preview="true">
|
||||||
|
@ -504,7 +504,8 @@ class Twist(inkex.Effect):
|
|||||||
if self.options.ids:
|
if self.options.ids:
|
||||||
# Traverse the selected objects
|
# Traverse the selected objects
|
||||||
for id_ in self.options.ids:
|
for id_ in self.options.ids:
|
||||||
self.recursivelyTraverseSvg([self.svg.selected[id_]])
|
# self.recursivelyTraverseSvg([self.svg.selected[id_]])
|
||||||
|
self.recursivelyTraverseSvg([self.svg.getElementById(id_)])
|
||||||
else:
|
else:
|
||||||
# Traverse the entire document
|
# Traverse the entire document
|
||||||
self.recursivelyTraverseSvg(self.document.getroot())
|
self.recursivelyTraverseSvg(self.document.getroot())
|
||||||
|
Reference in New Issue
Block a user