Hi!
Is there a way to change the @ptnum to a specific order? For example, if I want pt#5 to become pt#0 on a geo with primitives.
-Olivier
wrangle: change point order
5740 2 1- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
- SirClarks
- Member
- 11 posts
- Joined: 10月 2016
- Offline
I don't know about a way to do so specifically, but if you only need to change the point number of a single point and don't mind the rest of the numbers reordering: you could try using the Sort SOP and using shift give a negative value of the point number?
So pt#5 with a shift of -5 will become pt#0, and stay in the same place.
I'm guessing this might not be the best solution for you, but let me know if it helps.
So pt#5 with a shift of -5 will become pt#0, and stay in the same place.
I'm guessing this might not be the best solution for you, but let me know if it helps.
Your friendly neighborhood FX student.
- olivierth
- Member
- 1075 posts
- Joined: 4月 2017
- Offline
Hi SirClarks. Thanks for the reply.
In my case, I wanted the upper-left point of a rectangle primitive to become “0”, the upper-right to be “1”, etc. (point numbers going clockwise)
I ended up just recreating the primitive from a detail wrangle. This gave the the ability to set the order manually since I created each points one by one.
-Olivier
In my case, I wanted the upper-left point of a rectangle primitive to become “0”, the upper-right to be “1”, etc. (point numbers going clockwise)
I ended up just recreating the primitive from a detail wrangle. This gave the the ability to set the order manually since I created each points one by one.
-Olivier
-
- Quick Links