Emergency - Vray Script Error

Hello friends !

We wanted to get the REVIT Materials to VrayMaterials.
For that reason, we changed some minor parameters - the script worked fine until we installed the new realease.

Now we get all the time this error:

I’ve uploaded the script here;
http://www.bernhardrieder.com/ask/vrayutils.ms

Would be great if someone knows the bug.
Or maybe there is already a script that works with the scene converter and Revit.

Thx a lot,
bernhard

I remember there was the same error in another place; I have to check how it was fixed. The reason was that something changed for MaxScript between 3ds Max versions…

Best regards,
Vlado

ok

thx vlado, appreciate your hard work…

bernhard

I have also had this error recently and had to change all the materials by hand…
If there is a fix we also appreciate your hard work vlado!

So in the MaxScript, where is says if (r.texmap_diffuse) then ( change it to if (r.texmap_diffuse!=undefined) then ( and it will be fine.

Best regards,
Vlado

thanks very much.

uuaaahh

Hello !

vlado, I am sorry, but I got another error:

would be great if you can help ,
bernhard

Same thing, check the if-statement before the colored line and change it accordingly.

Best regards,
Vlado

well..

hmm, ok, there is no if-statement for the reflection, in my script.
anyway, I could fix it.

thx vlado,
bernhard

grrr…

Hello,

I switched today to Max2008 and guess what… the script doesn’t work anymore…
here is the error…


What do I need to change ?

thx for help,
bernhard

ps: the script I am using is here:
http://www.bernhardrieder.com/blog/vrayutils.ms

uuahhh

sorry sorry folks, my fault, its’ fixed, my script works, I just forgot to overwrite the existing one…

Has anyone had any luck with this script? I have been developing techniques to improve interoperability between Revit and 3dsMAX and if this script worked in the latest releases of 3dsMAX/Vray it would be really useful