Vray Scene converter in 2009

Does it work?
Because the last X amount of times i’ve tried it, it’s always failed?
I remember having to change the code for models imported from Revit files, but i’m just trying to convert a simple downloaded model which has standard Raytrace textures…

I can send the file if needed, but it’s not worked for me in ages now, only with Max 2009…

Thanks in advance as always!

How does it fail?

Best regards,
Vlado

Ah; change line 105 to
if (r.texmap_reflection!=undefined) then (

Best regards,
Vlado

Just a question, without have taken a look at the MAXScript converter…

Isn’t there another bug on line ‘110’ - a forgotten ‘n’ in ‘transparency’ - or is the transparency-setting in the origMtl variable working correct?

There is no bug there, the script is correct. The actual parameter name in the Raytrace material is misspelled.

Best regards,
Vlado

Ah okay. Thank you for the info.

I am also getting this error…

unable to convert :[color 17 17 17 0] to type :float

tcolor.color=(color (1.0-orig_mtl.refr_color) (1.0-orig_mtl.refr_color) (1.0-orig_mtl.refr_color))

Any suggestions ?

Regards,
Mike

It should read something like:tcolor.color=(color (1.0-orig_mtl.refr_color.r) (1.0-orig_mtl.refr_color.g) (1.0-orig_mtl.refr_color.b))

Best regards,
Vlado

Thanks for the quick response !

Regards,
Mike

Script

Can some share this working script?