Element.setparameterbyname doesn't take lists


#1

I’am setting my project parameters from a csv file.
We are using element.setparameterbyname to set the parameters, this works fine when you feed 1 item in the parametername and 1 item in the value, (green circle)
But when i feed parameterName and value a list it doesn’t work buyt it does not give me an error.

I realy want to use a list instead of creating a lot of seperate Element.setParameterbyname nodes.

list

 


#2

It will take lists.

You are feeding a list into the first node input, but only giving it a single value in the second and third inputs, therefore the node is confused about what to do after the first value in the list. Either make those last 2 inputs match the length of the first, or set the lacing of the setparameterbyname node to “Longest”


#3

Ben,

Thank you for your responce, it worked flawlessly