Adverti horiz upsell

hfCleanShaders 0.2.0 for Maya (maya script)

merge duplicate (namespaced) shaders

License
Button download
653 Downloads

Compatibility

  • 2008, 8.x

Operating Systems

  • Mac
  • Windows

History

Created:07/24/2008
Last Modified:07/26/2008
File Size: 3.35 KB
this script is for merging lots of namespaced shaders in your scene, in case you have many instances of the same object with shaders included. in this kind of situation, maya's built-in "remove duplicate shading networks" doesn't always work, so this is a workaround.

only shaders that are named exactly the same (aside from the namespacing) will be considered duplicates.

to use: just put the MEL in your scripts folder and run "hfCleanShaders;"
if you want to exclude any shaders from the process, just select them before running the script

usage notes:
the script automatically removes unused nodes after merging the shaders... it's best to import objects from reference before you run this script so that this can happen.

if you enabled sharing shading networks between references, mental ray materials in your scene may break due to the cleanup operation. you should disable node sharing in your scene before importing from references if you're going to use this script.

please report any bugs or comments to henry@toadstorm.com


Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • rushcg
    rushcg
  • plasticarm
    plasticarm
  • s
    s