Apply NME material to children meshes of an imported GLB node

Hey all, what would be a good way to apply a NME material to all children meshes of a specific node in an imported GLB? I’m not very experienced with coding so this is how I’ve approached it:

All good, figured it out