Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8530

Accesing Render Material color from GH

$
0
0

@aitorleceta wrote:

Hi, i’am trying to access to render materials difuse color from GH but I cant figure out how to do this. My render material aren’t expected to be assigned to any document object at the moment of accesing to their diffuse color. I want to associate my GH geometry to a render material, so this material will be used later when user decide to bake the GH geometry to the document. So far I can:

names = []
matId = []
colors = []
for mat in Rhino.RhinoDoc.ActiveDoc.RenderMaterials:
    names.append( mat.Name)
    materials.append(str(mat.Id))
    #dont know how to acces to render material color!!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8530

Trending Articles