Vray material randomizer

I am making a material randomizer for vray grasshoper
yet when I list all the materials and plug it back in, it will not accept the path. Can anyone help me firgure out how to input the right peices.

material_randomizer_bad.gh (12.7 KB)

What happen if you bypass the panel component. Since the +Mtl is expecting a material object not a text string

You have to use the “material from file” componenet to convert a .vrmat file into an actual material