I would want to export VRay Materials with an home-made 3dsmax export plugin.
I already have the code to export Standard Materials and tried to apply the same logic to VRay Mats.
But I can’t find the VRayMtl class in the VRay SDK!?
I saw the VRay SDK provided material examples to develop custom VRay Materials, but I didn’t find the VRayMtl class, which is the class I would want to export…
Am I missing something obvious?
Has somebody already played with the VRay SDK?
Ok, so my c++ skills and my comprehension of 3dsmax SDK may be not enough…
I will give it another try alone and post a code example further if necessary.
Here is an excerpt from the export code for the VRayMtl material that we use for V-Ray RT. I hope it will be useful - let me know if there are any questions.
I searched a moment in the forum rules but I didn’t find why I couldn’t read your attachment…
It seems my account do not allow me the reading… Any idea?
Ok! I understood… Only VRay customers are allowed to read attachment.
The company where I work do have Vray licenses. Where can I upgrade my account wih
I change a property in VRayMtl UI to a specific value, and then check all values in parameter blocks to find a match.
finally, I successfully extracted properties I need of VRayMtl(VRay3.2).
BUT, when I give my exporter to some of my clients who uses VRay 2.x, my exporter no longer work,
do I need to go through the process above again with every version of VRay?
Is there a better way to do this?
If there isn’t, how often do you guys change parameter blocks in VRayMtl?
I can’t tell you, sorry. When I did this material export a long time ago, I used a custom attribute to store and expose store some additional parameters.