Thanks for all your responses - I’m surprised this isn’t a thing, but good to know I won’t be making a bodge of a function that already exists!
In my circcumstances this is what seems to have worked for me in the end…
What I’m doing is loading a file that just contains 1 face with a material - then getting the material from the face - like this…
file=Sketchup.find_support_file( path )
and then I’d say change the colour or texture whilst wanting everything else to stay the same
the problem I was finding was that every time I tried to re-run this i’d get the same material and just end up editing that
so simply removing the defintion from the definition list so that it forgets the reference to it seems to have done the trick
I guess so making sure it’s coming from an external source every time, similar to how Dan’s method would work…