Material to conduits and flex pipes

Hi guys¡¡

I have a question that I could not solve…

Is it possible to assign a material to a conduit and a flex pipe by type from Dynamo?

Thanks Diego