how to query which attributes of a node are storable or not?

22 views
Skip to first unread message

yaoyansibase

unread,
May 28, 2016, 11:55:42 PM5/28/16
to python_inside_maya
Hi all,
I know  I can create an attribute in initialize() and set the attribute to be storable or not, just like this: setStorable(true)
But, given a node X, how to query which attributes of X are storable or not?

Any method with mayaAPI or mel/py script is appreciated. And mel/py script method is prefered.

Cheers
yao

Justin Israel

unread,
May 29, 2016, 3:58:00 AM5/29/16
to python_inside_maya
What about using attributeQuery(attribName, n=nodeName, storable=True)  ?



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/75691e78-13aa-4f60-87d6-745afbe0cb57.yaoyansibase%40aliyun.com.
For more options, visit https://groups.google.com/d/optout.

Justin Israel

unread,
May 29, 2016, 3:59:57 AM5/29/16
to python_inside_maya
There is also  MFnAttribute::isStorable() in the API

Reply all
Reply to author
Forward
0 new messages