PDA

View Full Version : vray refraction_fogColor


Mr-JosE
04-14-2008, 02:22 PM
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?

Posativ
04-14-2008, 06:56 PM
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)

Mr-JosE
04-14-2008, 10:49 PM
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.

CGTalk Moderation
04-14-2008, 10:49 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.