Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. """
  2. Rename.py
  3. Stephano Cardona
  4.  
  5. Description:
  6. This is a super quick renamer, for the rig i've been working on
  7.  
  8. Use:
  9. import Rename
  10. reload(Rename)
  11. Rename.gui()
  12.  
  13. """
  14.  
  15. import pymel.core as py
  16. selection = py.ls(sl=True)
  17. name =raw_input()
  18. count =0
  19. for items in selection:
  20. temp = '{0}_0{1}_Bind'.format(name,count)
  21. items.rename(temp)
  22. count=count+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement