Grasshopper

algorithmic modeling for Rhino

Dim mat As New rhino.DocObjects.Material

(...)

Dim ghmat As New grasshopper.Kernel.Types.GH_Material(mat.Id)

print( ghmat.IsValidWhyNot() ) ---> Material is a null reference.

How it is done to convert from custom rhino.material (done in GH) to Gh_material (for use with preview comp.)? and vice versa?

I found no references in the forum. I want to create custom materials linked between Rhino and GH.

Thank you very much!

Views: 505

Replies to This Discussion

Resolved.

Instead of rhino.DocObjects.Material, I changed it to rhino.display.displayMaterial.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service