top of page

VrayMtl Reflection SubDiv Changer


This is super simple python code that allows you to change reflection subdivision number uniformly on ALL VrayMtl and FastSSS2 materials.

Defualt subdivision level of 8 is not enough almost every time. For glossy materials, I usualy start from between 48 to 64. (It really depends on the render settings and noise level you want)

How to use.

Copy and paste the code in script editor, run it, put the number you want, click the button. done.

--------------------------------

import maya.cmds as mc

mc.promptDialog(title = 'VrayMtl Reflection Subdiv Changer',message = 'Enter Value:')

inputValue=mc.promptDialog(query=True, text=True)

sel= mc.ls(materials=True)

for i in sel:

cc=mc.nodeType(i)

if (cc=='VRayMtl') :

mc.setAttr(i + '.reflectionSubdivs',int(inputValue))

elif (cc=='VRayFastSSS2') :

mc.setAttr(i + '.reflectionSubdivs',int(inputValue))

--------------------------------

Featured Posts
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page