vraysdk override parameters

Cmd like "vray.exe -sceneFile=xxx.jpg -parameterOverride=“MtlRenderStats::shadows_visibility=1” cloud override parameters in vraystandalone. Is there a similar functions in vray app sdk?

With V-Ray Application Software Development Kit you can write your own applications which embed the V-Ray rendering engine. It is not an executable that you can run. It provides you with an API which you can use to control and supply data to V-Ray. You can chose among Python, JavaScript (Node.js or Electron), C# (.Net) and C++ for your application. So a sample code in Python which does what you ask might look like:

import vray
r = vray.VRayRenderer()
r.load(‘xxx.vrscene’)
r.plugins.MtlRenderStats.shadows_visibility = 1
r.start()
r.waitForRenderEnd()
img = r.getImage()
img.save(‘xxx.jpg’)
r.close()

P.S. This question sounds to me like “I have a watch and I can see the time and set an alarm. Can I do that with a computer?”. Of course, you can do that with a computer (although it might be a little harder than using a watch) but you can do so much more…

Thank you stanislav!You save my day. It works like a charm.

Great! You’re welcome! :slight_smile: