Combine nested list with list


#1

Hi everybody

This is probably an easy question for many of you… I have a nested lists of walls and a (not nested) list of numbers which I try to feed into an SetParameterByName node to set the top offset of each wall. I want the first number in the number list correspond to the first list of walls in the nested list, the second number correspond to the second list of walls and so on. How do I do that in Dynamo? I’m lost…

Thomas

2015-09-03_112537


#2

If you use list.takeeveryNthitem

than you can split the list with values…then you can combine them in separate lists and feed the element.setparameter


#3

Using Design Script…

20150903-2


#4

Hi

Got it! I didn’t quite understand how to use List.TakeeveryNthitem in this, but I did it with a python node. Actually I tried that earlier, but I had set the lacing wrong in the element.setparameter. Now it works.

Thank you anyway!

2015-09-03_142806