Filter elements by material

Hi guys,

I would like to filter wall depends on name of materials and copy it in a text parameter (blue group).
I can easily use the node Element.GetMaterial to have a list of materials of my walls (green group), but I can’t get wall depends on material type.
I’m trying to filter differents elements by their materials (orange group). For example, in my picture below, first I filtered materials (pink group) and then I wanted to apply a filter on my walls by the result of the previous filter. When I run it, it does not filter, all my walls appeared.

filter by materials

Thanks in advance,


It looks like you should be a little more careful in filtering/comparing lists of varying depth.

1 Like

Thanks Bjorn_Keulemans1, you’re right i was lost in my different filters and could not find the great solution.

1 Like