Match Family Material by It's Host

See also this for the FamilyType.CompoundStructureLayers node:

…and this for setting parameters (type or instance):

You should find your way with this. Please remember that specific questions receive an answer most of the time on the forum, especially when they follow these basic guidelines :slight_smile: