Split list into more uneven parts

Hey guys,
do you know how to split list into more than 2 uneven parts?

What I try to do, is to split list of multiple planes (floors), into selection which can vary in future. The maximum of planes is always predefined (f.e. 30 floors), and then I would just like to define split more unevenly - first 5 floors then 10 floors and then 15 (sum is always number of floors - 30 in this case)?

Is there solution to crack this problem?
Thank you very much for any response.

Sounds like Partition List is what you’re looking for…

PartitionList_re.gh (9.3 KB)

1 Like