when converting all materials in the scene the converter put a word “vray” in front of the material name… it’s a no go in my scene, because if I import models again, the materials are not recognized again because the name is not the same anymore…
I search a way to remove the word “vray” per batch (script). any ideas?
While you wait for a more convenient solution, you can try the the following:
- Close Max
- Search for a file called “vrayutils.ms” (mine is at “c:\Program Files\Autodesk\3ds Max 2010\Scripts\Startup\”)
- Search for the line that says: r.name="vray "+origMtl.name
and change it to: r.name=origMtl.name
You can also use this snippet to remove “vray” from the already converted scripts: for o in scenematerials where (substring o.name 1 5 == "vray ") do (o.name = substring o.name 6 -1)