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!
Tags:
Resolved.
Instead of rhino.DocObjects.Material, I changed it to rhino.display.displayMaterial.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by