ObjectColour

Hi there,

I want to change the colour of some surfaces in Rhino, and previously the below script has worked fine. However on a recent grasshopper file it stopped working properly, and now only changes the colours of the edges of the faces, leaving the face itself default grey. Any ideas why this might be happening?

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

for guid in guids:
    sc.doc = Rhino.RhinoDoc.ActiveDoc
    rs.ObjectColor(guid,colour) # get the colour from a colour picker
    sc.doc = ghdoc

Thanks!

Chris