Subscribe to our newsletter and receive new product announcements, special
sales, coupons and more! Your email address is never shared, is always kept
strictly confidential and you can unsubscribe at any time.
Note that MaxScript support is only available for 3dsmax 5.x and
later. While VRay still exports all its parameters to MaxScript in
3dsmax 3.x and 3dsmax 4.x, there is no MaxScript access to the current
renderer in those version.
In 3dsmax 5.x and higher, assuming that your current renderer is set
to VRay, you can refer to it from MaxScript using the
renderers structure:
vr=renderers.current
VRay_Adv_1_09_03g:VRay_Adv_1_09_03g
Renderer properties
Assuming that the variable vr holds an
instance of the VRay renderer, you can work with the renderer settings
as with any other MaxScript object:
showproperties vr
.imageSampler_type : integer
.fixedRate_subdivs : integer
.fixedRate_rand : boolean
...............
...............
...............
.options_maxDepth : integer
.options_maps : boolean
.options_filterMaps : boolean
.output_on : boolean
.output_width : integer
.output_height : integer
.output_fileOnly : boolean
.output_saveFile : boolean
.output_fileName : string
.output_saveRawFile : boolean
.output_rawFileName : string
false
Accessing the parameters is fairly easy, for example:
vr.gi_on=true true
Renderer methods
You can also use the following methods for saving/loading irradiance
and photon maps (assuming that vr holds an
instance of VRay):
Renderer method
Description
vr.saveCausticsPhotonMap <filename>
saves the current caustics photon map to the
given file
vr.saveGlobalPhotonMap <filename>
saves the current global photon map to the given file
vr.saveIrradianceMap <filename>
saves the current irradiance map to the given file
vr.saveLightCache <filename>
saves the current light cache to the given file
vr.loadIrradianceMap <filename>
loads the irradiance map from the given file
vr.clearIrradianceMap()
clears the irradiance map that is currently in memory
vr.clearLightCache()
clears the light cache that is currently in memory
Global functions
Additionally, the following MaxScript functions are globally
available:
Get the latest info on new products and special offers.
Or check out our ebay store - Discounted items
Pre-Sale and Post Sale
Support
We have years of real world production experience and
our knowledgeable staff can provide you the support you need for your
pre-sale or post sale questions.