Get material applied to an object

Hi ! I’m trying to get the material applied to an object in Rhino from grasshopper thought a Guid in python, I summited pseudocode in case anyone knows how to properly implement it, thank you.

I solved it, it was pretty easy, I upload the solution in case anyone could need it

1 Like