mouse_renameShaders 1.1.0 (maya script)

Batch rename shaders & associated shading network

Screen1

License Type:

Freeware

File ID:

5769

File Size:

7 KB

Created / Updated:

Jul 21, 2009 / Jan 17, 2016

Owner:

spirit_mouse   More free downloads from this user See users marketplace items See this users portfolio Send a Private Message

Platforms:

windows

Downloaded:

1,009

Maya:

2015, 2014, 2016

Tags:



Updated: 01.17.2016

-Revised script from MEL to Python

Function:


Batch rename selected shader(s) and its associated network with the following format:
   shader's name + _connected attributes + _NODE TYPE

The script will work on all maya base shaders, textures, render nodes and mental ray nodes.


Installation:

Unzip spM_renameShaders.py to maya's scripts folder.
(e.g. "C:\Users\user_name\Documents\maya\scripts")

Usage:

To run the script, select shader(s), run the following in Python script editor:

import spM_renameShaders
spM_renameShaders.spM_renameShaders()

The above command can be saved as a Python shelf button.


The script will recognize "_mat" and "Mtl" suffix on the shader(s) and take that off the prefix.

e.g.
shader = "testLambert_mat"
shader's color is connected to "file15"
after running the script, "file15" will become "testLambert_color_FILE"

Any questions, comments or bugs are very welcome.

Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum to ask any questions.
Please rate my product in the Review section.