Loop run script for each element

Hi, is there an option to make loop run script that takes elements from list individually for each run session? Something like that: Take first element from list and run script, then take second element and run script and so on?

No, nor can I think of a reason you’d want to do so. Build the graph to work on the full collection of all elements and process them as a list instead of individually.

I have a script for section views of beams. I can run script for many beams, but i can set only one value of viewdepth and cropregionoffset. So if i have beams 240 milimeters width and 600 milimeters width i can set only one appropriate value in one section view and then manually fix value on others section views.

Adjust the list levels and lacing and you’ll be able to take a list of values for each of these inputs.

How exactly use this? Because I did something like this and didn’t work:

The simple way:

Flatten all lists and make sure you have a variable for each input.

I recommend checking out the Dynamo Office Hour where I discuss lacing and list levels to set the ground work, session 4, 5 and 6. 5 in particular is a good start.

1 Like