Skip to content

Instantly share code, notes, and snippets.

@lapaev
Created February 17, 2015 23:10
Show Gist options
  • Select an option

  • Save lapaev/fdbcc7b07ac15feca43f to your computer and use it in GitHub Desktop.

Select an option

Save lapaev/fdbcc7b07ac15feca43f to your computer and use it in GitHub Desktop.
Fix Visible in Reflection/REfraction vray
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