Remplace parameter information of material

Good afternoon to the community:
I am writing because of a situation that happens to me, I have to concatenate a group of shared parameters, the script works fine for me when it is applied to loadable families, but when I want to do the same, but in shared parameters in materials, I get this error.

I hope you can help me.

the error says, No parameter found by name. Better to check the given parameter is existing in the project.

If the parameter is found.

from the images you’ve provided, it’s a little hard to tell what exact string you’re passing as the parameter name.

it looks like you’re passing the string “Material: CONCEPTOS MAESTRO”, but the parameter you show in the later image is named “CONCEPTOS MAESTRO”. try changing the value for the parameter name to match the name of the parameter exactly.


check this value

2 Likes

Indeed that was the problem, adding the prefix "Material : " does not recognize the parameters, so if we remove it the script works without problem.

Thanks to everyone for your support.