Pyhon and List Length

Ok, aside from the helpful advice you are receiving, here are a few other tips.

  1. When you post an example file, please try simplify it! (not with all the plugins, your question was about python, not honeybee)
    Note: you had the count set to tree access…if you are going to use it, set it to item.)

    2 - you can sort values using native components:
    (Screen shot has random values)

    3 - You can use some slighty more advanced python techniques to accomplish the same result as above, this particular example requires rhino 6. (but rule of thumb is…if you can do it with native components, maybe just use those?)

There are lots of folks on this forum that are happy to help, but it always starts with an example file and and, to the best of your ability, a brief description of the problem.

Example.gh (15.0 KB)

2 Likes