Is there a way to select actors by their material?

Thanks a lot 3draven.
That seems to be a solution. I saw a tutorial where someone made something in the editor blueprint.