Changing the order of the points in a Polyline

User avatar
SirEdric
Fusionator
Posts: 1741
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

Changing the order of the points in a Polyline

#1

Post by SirEdric » Thu May 16, 2019 4:27 am

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....)

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

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.

Go to full post

User avatar
intelligent machine
Fusionista
Posts: 399
Joined: Fri May 13, 2016 10:01 pm
Answers: 2
Location: Austin, Texas, USA
Been thanked: 28 times
Contact:

Re: Changing the order of the points in a Polyline

#2

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

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.


User avatar
Tory
Fusioneer
Posts: 58
Joined: Fri Apr 13, 2018 11:29 am
Real name: Tory Hooton
Been thanked: 5 times
Contact:

Re: Changing the order of the points in a Polyline

#3

Post by Tory » Thu May 16, 2019 10:27 am

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


User avatar
intelligent machine
Fusionista
Posts: 399
Joined: Fri May 13, 2016 10:01 pm
Answers: 2
Location: Austin, Texas, USA
Been thanked: 28 times
Contact:

Re: Changing the order of the points in a Polyline

#4

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

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.


User avatar
SirEdric
Fusionator
Posts: 1741
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

Re: Changing the order of the points in a Polyline

#5

Post by SirEdric » Thu May 16, 2019 11:24 am

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!...:-)