vray refraction_fogColor in maxscript

I am having trouble making a scripted material plugin work 3dsmax 9 that changes the fog color of a v-ray material.

I am trying to use this:-

delegate.refraction_fogColor = color 255 0 0

This should make the fog color completely red, but it has no effect. I seem to be able to change the reflection, refraction, IOR etc using the method. The material doesn’t change at all in the material slot nor in the render itself, but the property value has clearly changed. I am stumped for why it doesn’t work. Currently using Vray 1.5 RC3

Any help would be appreicated.

José

if your using the infamous vray 1.5 rc3 then you should contact the chaos group guys to get full forum access

Have you tried directly changing the material, e.g. m=VRayMtl(); m.refraction_fogColor=(color 255 0 0)

Best regards,
Vlado

That doesn’t work. I am working with an instance of a the VrayMtl plugin which has its own properties which the user defines. The way to get access to the VrayMtl properties is through using the ‘delegate’ local variable. I am trying to get this to work as a scripted material plugin, which would replace the UI for the VrayMtl.

Well, I know the scripted egz materials did adjust the fog color, so there must be a way to do it… I have to check it out.

Best regards,
Vlado

Anything you can do to help would be grateful. I sent an e-mail to vray.info regarding the egz material and am eagerly waiting for a reply, i assumed the method they used to change the glass colour was with fog.

The forum access point that Da_elf raised is one i do not have much control of. I just work for a company that uses V-Ray for rendering. We have licenses and dongles but have yet to get the dongles in place to use the full release version of V-Ray 1.5.

I scripted a simple SSS material a while back, and it worked a charm.
I never had the issue you mention.