Notifications
Clear all

[Closed] vray refraction_fogColor

Hi Guys,

I am having trouble making a material plugin script work 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. Currently using Vray 1.5 RC3

Any ideas?

2 Replies

What is “delegate”?

If it is an object, try delegate.material.refraction_fogColor = color 255 0 0 or for the MaterialEditor: MEditMaterials[activeMEditSlot].refraction_fogColor

(Don’t have vray)

You use delegate to access the underlining object in this case VrayMtl. The material scripted plugin is an instance of the VrayMtl object. For some reason trying to change the fog color has no effect on the material. The change you make to material property is saved but it has no effect on the material you see in the color slot nor in the render. It is almost as if another step is needed to make the change, but accessing the other properties of the VrayMtl work with no problem.