This next script I wrote for a specific job. Its pretty simple it just changes the Vray reflection affect channels attribute back to the default color only.
To Run: Select the shaders you want to change then run the script.
#Reflection Affect Channels Maya Version 1.0.0
#Bryanna London
#!/usr/bin/env python
#Changes VRay Mtl reflection affect channels back to default color only
import maya.cmds as cmds
materials = cmds.ls(sl = True, type = "VRayMtl")
if cmds.ls(sl = True):
for mat in materials:
cmds.setAttr('%s.reflectionAffectAlpha' %(mat), 0)
else:
cmds.confirmDialog(title='Confirm', message='Nothing Selected. Nothing Done.' , button =['Ok'])
© 2016 Bryanna London