add helper to get materials from all meshes contained in a node