Reading renderMaterials from 3dmFile

Hi, I’m trying to import materials from one Rhino file to the working document using Rhinocommon.

I only find methods to read materials from a 3dmFile, but not renderMaterials (materials created in the document but not assigned yet to any object)

How should I proceed? (i mean, using Rhinocommon + python/C#)
thanks

So long, the unique method I figured out is creating dummy objects for each material in the master file, so AllMaterials method is usable.

There is for sure a good reason for this design, but in at first glance the existence of those two entities “materials” and “renderMaterials” is sooo confusing.