How to preserve the order of points in the selection field ?
932 6 1- HGaal
- Member
- 102 posts
- Joined: June 2023
- Offline
I made a wrangle that should process the points in order of selection. But as I discovered, in the point selection field, the point numbers after selection are sorted in ascending order. I never thought about it before. This, of course, is visually convenient, but it’s the opposite of what I need. Is it possible to make sure that the point numbers are saved in the selection field in the order in which they were selected?
- BabaJ
- Member
- 2041 posts
- Joined: Sept. 2015
- Offline
- HGaal
- Member
- 102 posts
- Joined: June 2023
- Offline
- kodra
- Member
- 208 posts
- Joined: June 2023
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
kodra
I feel there should be a more direct way to do this... it perhaps has something to do with soputils. I still haven't figured it out tho.
the Action Button in group parm for Attrib Wrangle would have to have:
kwargs['ordered'] = True
but if this is for the HDA wrapper then you can easily make that work for your HDA group action button
Edited by tamte - Dec. 28, 2023 11:39:35
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- edward
- Member
- 7722 posts
- Joined: July 2005
- Online
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
edwardThe screenshot shows it's running in Detail modeHGaal
I made a wrangle that should process the points in order of selection.
I thought VEX/VOPs can't have any interaction when processing in points mode? So I'm not sure how you would see a difference in your wrangle when processing points in a different order, other than in a printf.
So I assume the group Parm is evaluated inside and fed into expandpointgroup() to later run over those points in order
But it's true there is no need to hijack wrangle's group Parm for this, you can make a new one and fix the Action Button to preserve the order as mentioned above
Edited by tamte - Dec. 30, 2023 16:11:29
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links