Jump to content

[SOLVED] expandpointgroup, but keep sort order?


galagast

Recommended Posts

On a Detail Wrangle connected to a 5x5 Grid:

i[]@foo = expandpointgroup(0, "10 1-3 8-6");

Returns:

[ 1, 2, 3, 6, 7, 8, 10 ]

It works great, but is there a way to disable auto sorting? Like this:

[ 10, 1, 2, 3, 8, 7, 6 ]

 

Edited by galagast
Link to comment
Share on other sites

Thank you! That example file is totally awesome! You covered multiple approaches! SOPs/Python/VEX :D

I've been seeing that "Create Ordered" check box for quite a long time, and I have been ignoring it! Now I can see its usage.

I really appreciate the effort @f1480187, thank you so much :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...