Skip to content

Commit

Permalink
Update MAYA_readme.txt
Browse files Browse the repository at this point in the history
Changed the script to also disable filtering for Redshift and Arnold
  • Loading branch information
michal212345 authored and mmdanggg2 committed May 12, 2022
1 parent 12f095a commit 06556f3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions conf/contrib/MAYA_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Submitted by cptplutonic

(http://www.reddit.com/r/jmc2obj/comments/smt0d/autodesk_maya_mel_script_to_batch_fix_your/)

Updated by michal121345
Added filtering for Redshift and Arnold file attributes


Instructions
------------
Expand Down Expand Up @@ -79,7 +82,11 @@ global proc pixelFilter() {
else {
for($material in $materials){
catch ( `select -r ($material + "F")` );
catch ( `setAttr ($material + "F.filterType") 0 ` );
catch ( `setAttr ($material + "F.filterType") 0 ` );
//Arnold Filterfix
catchQuiet (`setAttr ($material + "F.aiFilter") 0 `);
//Redshift Filterfix
catchQuiet (`setAttr ($material + "F.rsFilterEnable") 0 `);
}
}
}
Expand All @@ -98,4 +105,4 @@ global proc attatchTransparency() {
catch ( `connectAttr -force ($material + "F.outTransparency") ($material + ".transparency")` );
}
}
}
}

0 comments on commit 06556f3

Please sign in to comment.