Retain point numbers when copying

   2480   4   0
User Avatar
Member
143 posts
Joined: March 2014
Offline
Hello,

Is there a way for the copied geometry's points to retain their point numbers as you add more copies? I'm trying to paint copies using copy SOP and I need the point numbers on the copied geo to always increase as I add more copies. In the example and images attached, I've painted a box copy onto the grid and the ptnum in the yellow circle is “7”, then when I paint another box onto the grid to the left of the first box, the ptnum in the circle changes to “15” to accommodate the newly added box. Is there a way to have the point numbers just always increase from the last highest value as they are added?

Thanks!
Caesar
Edited by caesar - June 5, 2016 13:06:37

Attachments:
keepPtnum.hiplc (77.4 KB)

User Avatar
Member
143 posts
Joined: March 2014
Offline
sorry here are the pictures.

Attachments:
1.PNG (82.6 KB)
2.PNG (114.5 KB)
3.PNG (141.0 KB)

User Avatar
Member
143 posts
Joined: March 2014
Offline
I'm thinking the sort SOP is the way to go using some expression?
User Avatar
Member
392 posts
Joined: Nov. 2008
Offline
There is no information on the order of added points. Paint SOP doesn't have stroke history.
By painting attribute on existing points and grouping them by threshold you are creating copies based on the order of original points on the grid.
So order of points on the copies depends on the point number of the original grid.

Try to paint on the area of the grid with lower point number first, then on the opposite end and you will see that point number doesn't change in this case. Do it in reverse order and point numbers on the copies will jump.

So:
Look at Spray Paint SOP, it uses Stroke Cache so it remembers order of added points.
User Avatar
Member
143 posts
Joined: March 2014
Offline
Thanks pezetko - I'll take a look.
  • Quick Links