# Changing vray settings in a 3dsmaxcmd.exe pre-render script

**URL:** <https://forums.chaos.com/t/changing-vray-settings-in-a-3dsmaxcmd-exe-pre-render-script/53839>\
**Category:** Issues\
**Created:** [May 20, 2015, 10:27am UTC](https://forums.chaos.com/t/changing-vray-settings-in-a-3dsmaxcmd-exe-pre-render-script/53839 "2015-05-20T10:27:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [May 20, 2015, 11:20am UTC](https://forums.chaos.com/t/changing-vray-settings-in-a-3dsmaxcmd-exe-pre-render-script/53839/4 "2015-05-20T11:20:13Z")

</div>

The scripts are actually respected and they do work, but by the time they are executed, V-Ray has already cached its parameters from the parameter blocks. You could write a V-Ray settings plugin to do what you need - these can modify V-Ray’s parameters directly in its SequenceData structure. Or you could put that code in the setupSequenceData() method of a render element if you have one handy.

Best regards,  
Vlado

---

_[View the full topic](https://forums.chaos.com/t/changing-vray-settings-in-a-3dsmaxcmd-exe-pre-render-script/53839)._
