cwisbg

# Add AO attribute to sl

Jul 2nd, 2015
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # Add AO attribute to sl
  2. from pymel.core import *
  3. sl = selected()
  4. for s in sl:
  5.     attrCheck = hasattr(s,"miLabel")
  6.     if not attrCheck:
  7.         print "adding miLable to ",s
  8.         addAttr(s, longName ="miLabel",at="short",defaultValue=0)
Advertisement
Add Comment
Please, Sign In to add comment