# V-Ray standalone parameterOverride for materials.

**URL:** <https://forums.chaos.com/t/v-ray-standalone-parameteroverride-for-materials/95410>\
**Category:** General\
**Created:** [August 27, 2019, 10:37pm UTC](https://forums.chaos.com/t/v-ray-standalone-parameteroverride-for-materials/95410 "2019-08-27T22:37:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fridayvfx](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fridayvfx/32/20912_2.png) [@Fridayvfx](https://forums.chaos.com/u/Fridayvfx)\
**Post date:** [August 27, 2019, 10:37pm UTC](https://forums.chaos.com/t/v-ray-standalone-parameteroverride-for-materials/95410/1 "2019-08-27T22:37:49Z")

</div>

Hey,  
I’m sure I did it correctly in the past but I currently cannot get the parameterOverride to work for materials on a scene that I’ve exported from 3ds max.

The return-help from vray states that parameterOverrides should be done like this:

-parameterOverride=“SettingsImageSampler::type=3”  
-parameterOverride=“TexFresnel::fresnel\_ior=1.3”  
-parameterOverride=“[VRayMtl1@diffuse.color=Color](mailto:VRayMtl1@diffuse.color=Color)(1.0,0.2,1.0)”  
-parameterOverride=“[VRayMtl2@diffuse.color](mailto:VRayMtl2@diffuse.color)\_tex=checker1”

So Plugin overrides like Image sampler settings and stuff work fine this way, but as soon as I want to change material colors or light I cannot get it to work.

For example, I have a Material in my scene that is declared like this in the vrscene file exported from 3ds :

[https://paste.ofcode.org/3asQpfsxCN6QWd6vSexuqab](https://paste.ofcode.org/3asQpfsxCN6QWd6vSexuqab)

But when I use the convention stated in the help File I get this output:

 ![4ZjmVnoOA4](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/d/fd5cd5bea5bf23f85bb35cc1165e9752f2ab5d00.png)  
I also saw that in the vrscene file you guys define an internal numbering for materials inside the vrscene file (in this case mtl\_brdf\_0 - mtl\_brdf\_X) so I’ve tried this as well but it’s not working.

 ![RCbFBeC5Hk](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/c/9c8045cc979a013056022017c68ed778fdd4f9da.png)  
What am I doing wrong? 🙂

Thanks for caring  
-Robert

---

<div class="post-metadata">

**Author:** ![hermit.crab](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/hermit.crab/32/46825_2.png) [@hermit.crab](https://forums.chaos.com/u/hermit.crab)\
**Post date:** [August 28, 2019, 11:29am UTC](https://forums.chaos.com/t/v-ray-standalone-parameteroverride-for-materials/95410/2 "2019-08-28T11:29:46Z")

</div>

As already stated in the -help description, the parameter override option should look like this: “\<plugin-parameter-id\>=\<value\>”, where \<plugin-parameter-id\> - can be two formats - PluginType:: parameterName or pluginName.parameterName.

In the .vrscene it is written like this (depending on the scene): BRDFVRayMtl Material\_\_25@mtl\_brdf\_0, where BRDFVRayMtl is the type of plugin and Material\_\_25@mtl\_brdf\_0 is the name of the plugin. Below that (i.e. diffuse=AColor(0.5019608, 0, 0, 1)) are the names of the parameters.

That being said the override option should look like this: -parameterOverride=“Material\_\_25@mtl\_brdf\_0.diffuse=AColor(0,0,0,1)”  
Same thing for lights: -parameterOverride=“VRayLight001@light\_2.enabled=0”

---

<div class="post-metadata">

**Author:** ![Fridayvfx](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/fridayvfx/32/20912_2.png) [@Fridayvfx](https://forums.chaos.com/u/Fridayvfx)\
**Post date:** [August 28, 2019, 11:49am UTC](https://forums.chaos.com/t/v-ray-standalone-parameteroverride-for-materials/95410/3 "2019-08-28T11:49:19Z")

</div>

Ah! Got it! Thank you!  
-Robert
