Retrieving material Notes from material with python

There is a Notes field on each material, accessible through the UI. I am trying to access it in code and have tried various approaches, none of which work.
In a simple world this would be something like material.Notes, similar to material.Name. Clearly this doesn’t work and I’m hoping there is a simple way to access this notes field.

Hi @GaryC, are you trying with RenderMaterial or Material ?

import scriptcontext

for rm in scriptcontext.doc.RenderMaterials:
    print "Name={}  Notes={}".format(rm.Name, rm.Notes)

_
c.

Thanks very much Clement.
I guess I was after RenderMaterials but could not figure how to access the RenderMaterials directly. Doesn’t seem to be available in rhinoscriptsyntax. What solved that for me was this post: RhinoCommon: unable to get RenderMaterial of object - #10 by nathanletwory