Missing edge in motion extension

Post questions on how to use or achieve an effect in Inkscape.
shrubber
Posts: 3
Joined: Sat Apr 26, 2014 5:44 pm

Missing edge in motion extension

Postby shrubber » Sat Apr 26, 2014 5:51 pm

I created a default star and applied the default motion extension to it. However, the resulting image is missing one edge (see picture). What am I doing wrong?

Image

Tom_092
Posts: 2
Joined: Sat Apr 26, 2014 6:54 pm

Re: Missing edge in motion extension

Postby Tom_092 » Sat Apr 26, 2014 7:34 pm

nice post.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Missing edge in motion extension

Postby ragstian » Sun Apr 27, 2014 12:59 am

Hi

You are doing nothing wrong. The motion effect is an extension to Inkscape.
The author of the extension probably never tested it with a star or with any shapes with more than 'X' nodes?
There are some other faults as well as new faces does not cover 'hidden lines' as seen in the bottom of 'your' star.

If you have a little python programming knowledge and know a little about the SVG specification http://www.w3.org/TR/SVG11/ feel free to 'fix' the extension.
The extension code can be found in Inkscape_install_dir\share\extensions\ the file is motion.py.
Fixing the extensions can be difficult as most authors did not leave any comments in the code (bad practice) to show how the code is working.

For your star having snapping set to node endpoints and intersections drawing the 'Motion effect' can be done in about 20 seconds manually.

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

shrubber
Posts: 3
Joined: Sat Apr 26, 2014 5:44 pm

Re: Missing edge in motion extension

Postby shrubber » Sun Apr 27, 2014 1:55 am

Thank you for your answer. The star is just a testcase. I have a complex shape with many verteces and Bezier curves, which I want to move. I'll see if I can make some sense of the Python code.

Is there by any chance another tool suitable for the task? I tried Extrude, but it can't handle Bezier curves.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Missing edge in motion extension

Postby Lazur » Sun Apr 27, 2014 2:32 am

Here is how to overcome the problem:

Convert the star tool to path (Ctrl+Shift+C),
select the starting node of the path with the node tool and split it to two (Fourth icon from the left).

That way the extension won't miss a segment from the selected path.

shrubber
Posts: 3
Joined: Sat Apr 26, 2014 5:44 pm

Re: Missing edge in motion extension

Postby shrubber » Sun Apr 27, 2014 2:33 am

I seem to be lucky after all. With my picture, the extension only omits two straight segments, which can easily be fixed manually.

Image


Return to “Help with using Inkscape”