In case you are getting crashes with DirectX in 3ds Max, here is a simple script to disable the “Show map in viewport” option for all VRayMtl materials in the scene.
To use the script, drag and drop the .mcr file onto 3ds Max; then go to Customize > Customize user interface > Toolbars and select the VRay category. You can then drag the command to any toolbar.
Hope you don’t mind, as this script does not crawl submaterials, i’d suggest this little change that catches all vraymaterials anywhere.
macroScript VRayDisableMapsInViewports category:"VRay" buttontext:"Disable VRayMtl maps in viewports" tooltip:"Disable the Show map in viewport option for all VRayMtl materials in the scene"
(
m = getclassinstances vraymtl
for i in m do
(
showTextureMap i off
)
)