SHARE
TWEET

Untitled

a guest Mar 15th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top