![]() 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. What looks like a connection is in fact deletion of the existing material, creating a new V-Ray custom material and change the material assignment. It is nothing about connecting or whatever. In fact the V-Ray materials in the Rhino panel are our own custom Rhino materials. it would be great if someone from Chaos Group could explain how to use GetSceneMaterialNames. The V-Ray materials are not really connected to Rhino materials. ![]() ![]() 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. So i've been trying to script this for two days.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |