daily pastebin goal
51%
SHARE
TWEET

kill strings based on input

jackapowell Jan 20th, 2019 (edited) 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from pymel.core import *
  2.  
  3. shaderList = ls("aiStandardSurface1")
  4.  
  5. allAttributes = listAttr(shaderList,w=1 ,c=1 ,sa=1 )
  6. attributes = []
  7. values = []
  8.  
  9. for word in allAttributes:
  10.     if not word.endswith(("frozen", "Interesting", "caching", "frozen", "nodeState")):
  11.         attributes.append(word)
  12.         attrValue = getAttr(shaderList[0] + "." + word)
  13.        
  14.         values.append(attrValue)
  15.        
  16. for each in values:
  17.     if each == True:
  18.         each = 1.0
  19.     if each == False:
  20.         each = float()
  21.  
  22. print values
  23. shaderAttr = dict(zip(attributes,values))
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