Dynamo Node: Material.ByName not working?

i am trying to select the materials by name but not getting the right results. I have 13 materials in my file which i just created from excel.

Hi @angadtiwari, Next time show what the Yellow error bubble says, because now we don’t see what the error is.

My best guess is that the names you put in the node have a space somewhere in them, probably at the end. Please make sure this is not the case by using the Node String.TrimTrailingWhiteSpaces

1 Like

Hi,

You maybe need the Transaction.End and the Transaction.Start nodes after the creation of the new materials. Inside an unique transaction, Dynamo doesn’t know these new materials.

1 Like

Yes i guess it was related to something in the text input. Il make sure of it.