Created
February 17, 2015 23:10
-
-
Save lapaev/fdbcc7b07ac15feca43f to your computer and use it in GitHub Desktop.
Fix Visible in Reflection/REfraction vray
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global proc objFix() | |
| { | |
| string $mySelection[] = `ls -sl`; | |
| for($each in $mySelection) | |
| { | |
| string $mySelectionShapes[] = `listRelatives -s $each`; | |
| if( !(nodeType($each) == "mesh") ) | |
| { | |
| select -cl; | |
| } | |
| { | |
| setAttr ($each + ".visibleInRefractions") 1; | |
| setAttr ($each + ".visibleInReflections") 1; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment