small enhancements

This commit is contained in:
Mario Voigt 2021-05-25 11:21:43 +02:00
parent ebdc2a1c4d
commit 1a7cdb29a7
3 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
line animator - create CSS3 animations that look as if someone is drawing them by hand

View File

@ -5,7 +5,7 @@
<param name="tab" type="notebook">
<page name="tab_settings" gui-text="Modify Path Start Node">
<param name="closed_only" type="bool" gui-text="Handle closed paths only" gui-description="If disabled we also apply on open (sub)paths. Warning: This REMOVES segments!">true</param>
<param name="movenode" type="int" min="-99999" max="99999" gui-text="Move node n nodes further">0</param>
<param name="movenode" appearance="full" type="int" min="-9999" max="9999" gui-text="Move node n nodes further">0</param>
<param name="visualize_result" type="bool" gui-text="Visualize first two nodes" gui-description="If enabled first two nodes get a number and a dot">false</param>
<param name="fontsize" type="string" gui-text="Font size:">10px</param>
<param name="dotsize" type="string" gui-text="Dot size:">10px</param>

View File

@ -69,7 +69,7 @@ class MovePathNode(inkex.EffectExtension):
self.msg("-"*25)
for i in range(moves):
if len(path) > 2: #the path needs at least more than two segments
if len(path) > 2: #the path needs at least more than two segments, else we might just get a "pointy path" on an open path
#we move the first segment to the end of the list
move = path[0]
@ -112,7 +112,8 @@ class MovePathNode(inkex.EffectExtension):
newSubpaths[subpathNr - 1] = path
else:
inkex.utils.debug("More moves entered than possible to apply")
inkex.utils.debug("More moves entered than possible to apply. Path result would be a point, not a line")
#return
composedPath = inkex.Path()
for newSubpath in newSubpaths: