Substance variations on multiple meshes

I already attempted doing this, but the thing is the construction script when called all the variables are set to their defualts, except if it’s an editable one I tried to make The instance graph and the Dynamic Material Instance as editable, I saw the changes on the material in the details panel, but it doesn’t get rendered in the viewport.