If you don’t share your graph and you don’t state exactly what part of the workflow is giving you a hard time, you’ll have to wait for me ( or someone else) to have the spare time to re-create and test things for you from scratch…In short - the more specific you are and the more you share, the faster you’ll receive help on the forum.
I’ve attached an example below. Study it and see if it works out for you. Be mindful of the node lacing.
we group the group instances by their type.
the GetKeys node extracts the list indexes. Indexes start from 0, so we’ll need to add 1.
3)we then need to extract each group’s elements.
- We count the number of elements of each group instance and replicate the above list of indexes by the number of elements in each group.
5)be sure to convert the numbers to the proper parameter container type (in my case the parameter was a TEXT type)
6)as long as the lists of elements and parameter values match in structure ( i needed to flatten each sublist of parameter values), we can straight away apply them to the “Element.SetParameterByName” node.