Page 1 of 1

Changing the order of the points in a Polyline

Posted: Thu May 16, 2019 4:27 am
by SirEdric

When importing an SVG Shape,
(for the sake of this post, imagine the shape of the letter 'W')
and hitting Ctrl-T, Fusion nicely shows the numbers of each point in the view from 0 .. n.
However, Point 0 can sit on the top left arm of the 'W', or on the top right arm.
If the 'W' was a closed outline shape, rather than just a line, Point 0 can sit anywhere on that line.

Meaning, when animating things along that Path, the animation arbitrarily starts at the point where Point 0 sits.
It would be cool to have an option to mark any point and set it as Point 0.

Sure...one could script that, read the entire Pointlist and start shifting the order of those points, but maybe there's a more elegant solution....
(Just offsetting the displacement spline of the animation works fine for many cases, but it's no universal solution....)


Re: Changing the order of the points in a Polyline

Posted: Thu May 16, 2019 10:08 am
by intelligent machine

You can select any two adjacent points and quickly open then close the polygon which will set those two points to first and last based on the relative order.


Re: Changing the order of the points in a Polyline

Posted: Thu May 16, 2019 10:27 am
by Tory

Is there a way to cause the numbering to switch direction?


Re: Changing the order of the points in a Polyline

Posted: Thu May 16, 2019 11:19 am
by intelligent machine

I tried by no such luck. This should be easy to do in python using a reverse list function but I haven't fiddled with getting polygon points into a list.


Re: Changing the order of the points in a Polyline

Posted: Thu May 16, 2019 11:24 am
by SirEdric

You can select any two adjacent points and quickly open then close the polygon which will set those two points to first and last based on the relative order.

Pretty brilliant!...:-)