dynamic mesh -> static mesh and materials

hi,

im currently learning geometry scripting and it’s going pretty well but when i try to store the dynamic mesh as a static mesh the materials are not being copied over properly.

on the right is the dynamic mesh and on the left is the generated static mesh

i followed a short video tutorial on doing this and the node setup looks like this. incidentally if i hit ‘update mesh’ it doesn’t update the mesh. so im unsure about that also.

the material slots have been created in the static mesh and the materials have been assigned. so i think it’s the material groups or ids that aren’t being set?

any help/advice is appreciated. :v: