vray scene converter - material rename

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?

thanks for helping.

best regards
themaxxer

If you find a solution, please post it here as I’m also interested in that…

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

Regards

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)

Like Codi suggested, you can simply modify the converter script…

Best regards,
Vlado

great! thank you guys for your help! it saves me a lot of work.

best regards
themaxxer