Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pymel.core import *
- shaderList = ls("aiStandardSurface1")
- allAttributes = listAttr(shaderList,w=1 ,c=1 ,sa=1 )
- attributes = []
- values = []
- for word in allAttributes:
- if not word.endswith(("frozen", "Interesting", "caching", "frozen", "nodeState")):
- attributes.append(word)
- attrValue = getAttr(shaderList[0] + "." + word)
- values.append(attrValue)
- for each in values:
- if each == True:
- each = 1.0
- if each == False:
- each = float()
- print values
- shaderAttr = dict(zip(attributes,values))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement