Help to get Material Info (RhinoPython)

I’m trying to get the notes information from a material applied with Rhino. I tried the next instruction, but I couldn’t obtain what do I want

import rhinoscriptsyntax as rs
import Rhino
obj = rs.GetObject(‘Select object’)
index = rs.ObjectMaterialIndex(obj)
print rs.MaterialName(index)
print Rhino.Render.RenderMaterial.Notes

Does anyone could help me to obtain this info?

Thanks for your help

Jesus Lopez

@JohnM, material notes are held by the RDK, correct? Can you get to these from RhinoCommon?

If you can get access to the RDK render material you can access the notes via the Rhino.Render.RenderMaterial.Notes property. In Rhino Common you get the render material by calling Rhino.DocObjects.RhinoObject.GetRenderMaterial, this will return null if there is no RDK material associated with the specified object.