Set VRay = Rhino.GetPluginObject("V-Ray for Rhino")ītw i've tried defining MatNames as an array first, but i get a different type mismatch, apparently when it gets passed to the sub, i guess because i don't know how many elements to define in the array. Here's my code, works fine until the last line: once I have a list of Material names, saving all of them is no prob, all the Vray exposed Subs work. it would be great if someone from Chaos Group could explain how to use GetSceneMaterialNames. i can see that it is an array, and i can see that it has the right number of entries (same number of materials, even if i add or delete materials). In Vray though there is an exposed Sub called GetSceneMaterialNames, and this seems to work, but I keep getting a type mismatch when i try to access the array of material names it returns. rhino has functions for accessing materials, but they only work for Vray materials that were created since the file was opened (current session), so that won't work. We’ll be able to exchange materials, settings, etc from all V-Ray. What will be missing is Max tools like animation, access to more visualization tools like flow simulation, plant generation, etc. The next release of V-Ray for Rhino, due out soon, will have most features of V-Ray for Max. So i've been trying to script this for two days. Marc (Marc Gibeault) January 27, 2017, 8:06pm 5.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |