Jump to content
galagast

[SOLVED] expandpointgroup, but keep sort order?

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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×