Message 1 of 4
Converting an object's display color to a Vray Material

Not applicable
05-18-2009
02:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys...
I'm a complete newbie when it comes to MaxScripting, but I have done some basic VB.NET and Rhinoscripting, so I'm hoping I can catch on quickly enough or copy and paste some code into the right configuration. Here's my challenge:
I have a large set of geometry that was created by a parametric design plug-in for Rhino called Grasshopper. I was able to bake the geometry with a "per object" color, which is fine but I want to be able to convert these colors into Vray materials in Max. When I import the scene in Max, I separate the objects by color, so I have a huge amount of object sets (equal to the number of distinct colors in the scene). I could go in and try to replicate the color of each set one by one, but I'm hoping to script an alternative, since there can be hundreds of colors and I may need to do this many times.
I'd like to be able to take the color from the Max Display color field and create a VRay Material with the corresponding diffuse layer and a predetermined set of reflection and refraction parameters that will apply to all of the materials. These materials must also be applied back to the corresponding geometry so they can be rendered in Vray. I'm working in Max 9 and Vray 1.5.
Does this sound simple enough? Any pointers?
Thanks,
Marc
I'm a complete newbie when it comes to MaxScripting, but I have done some basic VB.NET and Rhinoscripting, so I'm hoping I can catch on quickly enough or copy and paste some code into the right configuration. Here's my challenge:
I have a large set of geometry that was created by a parametric design plug-in for Rhino called Grasshopper. I was able to bake the geometry with a "per object" color, which is fine but I want to be able to convert these colors into Vray materials in Max. When I import the scene in Max, I separate the objects by color, so I have a huge amount of object sets (equal to the number of distinct colors in the scene). I could go in and try to replicate the color of each set one by one, but I'm hoping to script an alternative, since there can be hundreds of colors and I may need to do this many times.
I'd like to be able to take the color from the Max Display color field and create a VRay Material with the corresponding diffuse layer and a predetermined set of reflection and refraction parameters that will apply to all of the materials. These materials must also be applied back to the corresponding geometry so they can be rendered in Vray. I'm working in Max 9 and Vray 1.5.
Does this sound simple enough? Any pointers?
Thanks,
Marc