Advertisement
jackapowell

kill strings based on input

Jan 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  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))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement