Edit all elements of the list with Element.SetParameterByName

Hello :slight_smile:

I am an absolute dynamo newcomer and have a beginner question
Unfortunately, I found in Dynamoprimer and here in the forum nothing about my problem.
I would like to fill the parameter Element.SetParameterByName.
The value is always written only in the top element of the input list, but I will bring in all the elements
what do I have to change?

Does it concern only a single type of parameter as well?

Can you upload file or picture…?

Yes, it does

set lacing to longest on the set parameter node

@Marcel_Rijsmus wow so a simple solution :smiley:
Many Thanks

Then maybe try to put a transpose before the line goes into the element input or value input…
Edit: maybe flatten them?

in the code block (the one with “Element”) remove the Braces
it should be:


Yeah, I think that’d be the simplest solution, I didn’t notice that.

1 Like

Try also my solution
normaly we don’t use Braces in this way


I also think it’s important to understand why @Nico_Stegeman’s solution works. I think that’s actually necessary to understand why the lacing @Marcel_Rijsmus talked about works.




also important to know:


Hello Bim2

I agree with Paul that it is necessary to understand why the lacing is working and how.
But if you use the lacing method be aware of how lacing works

List lacing could become an error if you have input of uneven length, that could happen if you combine a input list by {2 parameters} and {value length 3, value lenght 2}.

If you have a input of two list with different length the result wil be as this picture:

1 Like

I don’t want to downplay what @Marcel_Rijsmus said as his solution definitely solves the issue, but it is however solving an issue which really doesn’t need really need to be there in the first place. You put brackets around “Comments” and that is not necessary and caused your problem.

1 Like

When i started dynamo is never used Braces that way (list) I Just connected 5 Element.SetParameter node
after each other to avoid problems :smile:

A little excercise with lacing an list levels:

Thanks to Erik Falck Jørgensen (Erfajo) who once remind me of this :+1:

1 Like

Hey guys
Many thanks you for your help, I think I got it :slight_smile:

1 Like