![]() ![]() ![]() The V-Ray scene transaction is necessary to speed up the process, if you don’t care, remove the line. I guess you want this, if you don’t just remove the line (m, vrayMtlId, True)Īs you can see, first we merge all materials with the same name, because they seem identical. ("_RenderMergeIdenticalMaterials _SameNameOnly=_Yes _Enter", True)įor m in : Here is the code that you need to run: import System dwg export was a terrible back in the days, and I don’t see much changed for 22 years. ![]() If that is what you mean by “redundant materials”įirst, just to share a personal opinion. The converted material is already assigned to whatever the previous was, while the previous is automatically removed by Rhino.once the material is converted one way or another, Rhino will change the assignment automatically.Mind that this modifies the RhinoDoc.RenderMaterials collection Also that command requires selection, which is pretty unpleasant to script. Instead of vrayMtlFromRhino you can use () The API call does more or less the same thing as the command, but avoids the overhead of the V-Ray plugin messing with the material table. In general you shall not use a command for something that is available in the API. ![]()
0 Comments
Leave a Reply. |