Announcement

Collapse
No announcement yet.

Script to disable maps in viewports for all V-Ray materials

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

  • Script to disable maps in viewports for all V-Ray materials

    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.

    Best regards,
    Vlado
    Attached Files
    I only act like I know everything, Rogers.

  • #2
    Hi Vlado,

    Hope you don't mind, as this script does not crawl submaterials, i'd suggest this little change that catches all vraymaterials anywhere.

    Code:
    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
    		)
    	)
    Best regards,
    Michael
    This signature is only a temporary solution

    Comment

    Working...
    X