Hi,
Is there a function that will return the names of all the materials in a file or check to see if one exists by its name?
I see one for VBScript but not Python?
Eric
Hi,
Is there a function that will return the names of all the materials in a file or check to see if one exists by its name?
I see one for VBScript but not Python?
Eric
Hi @eric.bunn,
Just iterate the render material table:
import Rhino
import scriptcontext as sc
for rm in sc.doc.RenderMaterials:
print(rm.Name)
– Dale
Thanks Dale. This will work.
Eric