I am working on filtering, combining and counting elements (from lists) into respective groups to spit out grouped elements as a list of strings. The problem i can’t seem to figure out (and i think the answer may be a scrips but any help is much appreciated) is that this program is looking through element parameters based on elements selected by a user.
this means that the number of elements will change every time, and further downstream if the elements have differing parameter values it will change the number of elements on each list.
So I have a Dynamo script that is working to get me the result that i want, but the only way i can figure out how to get all of the results is to create an upper limit of the maximum possibilities…the final result being hundreds of nodes, and a pretty ugly, heavy graph.
I need help finding a node or writing a script that will loop over my initial selection and run the next step based on the number of key values generated. (i.e. if i have 2 parameters i only want 2 instances of the downstream part of the script to run) Right now because there are 10 possible parameter values, i am using a get item at index with a hard coded double 1-10, which means my script end up with a very large tree very fast, as well as very commonly having quite a few nodes with no input.
thank you for your help!