Bodysoulspirit's picture


Bodysoulspirit's picture


This also seems to be working.

Haha you came with a question and you just found the easiest way to achieve this it seems ;)
Dictionaries and Tables could probably still be useful in some cases you'd wanna map lists with different patterns than ascending/descending.
But for this case, your method is the straightforwardest.

Magneson (@MartinusMagneson)

(I already have a couple of my shoddy image filter ports included in 1.2.6 ;) Polished by team Vuo of course!)

Ah ok sorry I did not see that, congrats !

Bodysoulspirit's picture

Just realized technically one could also use a table instead of a dictionary for stock nodes method.
Your custom nodes are probably still better to do this since you don't have to convert text lists to real etc.

Joining the composition for those interested.

Sort With Table

Bodysoulspirit's picture

Sending you some $ for this bytheway ! This is great

Bodysoulspirit's picture

This is amazing Martinus !
Analyzing your method made me realize some errors I suggested in my method on Kewl's question.

I think I have come up with a method using stock nodes only though using make dictionary, but it's not as good as your custom nodes. More nodes required, more type conversions and your composition feels smoother on my Macbook pro !

Sharing if one has to go with stock nodes only.
Basically Reorder List can be replaced with Get Items From List I guess. Although maybe your node is at this point already more optimized for this.
And for the Sort With Index I used a dictionary, indexes as values, and amplitudes as keys, and retrieved the keys sorted using Sort Points by Distance.
Where your node really shines is it does combine all these steps, and I guess that's what makes your method way smoother !

And the composition is also very nice, the colors, the idea of spreading the layers randomly is a cool idea. Anyway, congrats !

PS : Question to the team, is there a reason why Sort Points By Distance does not allow Reals (starting from 2D points only).
PS 2 : Definitely would be cool to have an index / position output on the Sort Points By Distance you know you can also post the nodes to be added to Vuo as stock nodes if you want Martinus ? I remember Alexander Mitchell did that for one audio node if I'm right.

Dictionnary method

Bodysoulspirit's picture
@Bodysoulspirit commented on @Kewl's Discussion, “Sort list of layers

Edit : removed my method posted here since it contained some errors and was way less accurate than Magneson (@MartinusMagneson) his custom nodes and method he shared after : Node Set: Magneson's List Tools