Reflect Affect

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 = = True, type = "VRayMtl")

if = True):

    for mat in materials:

        cmds.setAttr('%s.reflectionAffectAlpha' %(mat), 0)


        cmds.confirmDialog(title='Confirm', message='Nothing Selected. Nothing Done.' , button =['Ok'])

© 2016 Bryanna London