Adverti horiz upsell

mouse_renameShaders for Maya 1.1.0 (maya script)

Batch rename shaders & associated shading network

License
Button download
1,063 Downloads

Reviews

Rating: 5.0
(4)

Compatibility

  • 2016, 2015, 2014

Operating Systems

  • Windows

History

Created:07/21/2009
Last Modified:01/17/2016
File Size: 6.96 KB
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 if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • y s
    y s
  • yy ss
    yy ss
  • Yutaro Shirai
    Yutaro Shirai
  • Lamontg
    Lamontg
  • miyazaki masashi
    miyazaki masashi
  • Changbae Kang
    Changbae Kang
  • Tibbar
    Tibbar
  • elviocb
    elviocb
  • Richard Brazier
    Richard Brazier
  • jeanim
    jeanim
  • Matt Lumb
    Matt Lumb
  • zitro3d
    zitro3d
  • ael w
    ael w
  • kama boko
    kama boko
  • plasticarm
    plasticarm
  • interno30
    interno30
  • chucko
    chucko
  • whitesuri
    whitesuri
  • Max Steven
    Max Steven
  • 鹏
  • binbin
    binbin
  • kaiyongman
    kaiyongman
  • mawkroy
    mawkroy
  • tony yang
    tony yang
  • Vojtech Lacina
    Vojtech Lacina
  • g2mXagent
    g2mXagent
  • Toast
    Toast
  • rushcg
    rushcg
  • lin xuefeng
    lin xuefeng
  • mihajlo miskarovski
    mihajlo miskarovski
  • sil_musashi
    sil_musashi