Announcement

Collapse
No announcement yet.

V-Ray standalone parameterOverride for materials.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • V-Ray standalone parameterOverride for materials.

    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(1. 0,0.2,1.0)"
    -parameterOverride="VRayMtl2@diffuse.color_tex=chec ker1"

    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

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

    http://fridayvfx.com/clipupload/4ZjmVnoOA4.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.


    http://fridayvfx.com/clipupload/RCbFBeC5Hk.png


    What am I doing wrong?

    Thanks for caring
    -Robert

  • #2
    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"
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Ah! Got it! Thank you!
      -Robert

      Comment

      Working...
      X