What about using attributeQuery(attribName, n=nodeName, storable=True)  ?

http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/attributeQuery.html#flagstorable


On Sun, May 29, 2016 at 3:55 PM 'yaoyansibase' via Python Programming for
Autodesk Maya <[email protected]> wrote:

> 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
>
> --
> 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 [email protected].
> 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
> <https://groups.google.com/d/msgid/python_inside_maya/75691e78-13aa-4f60-87d6-745afbe0cb57.yaoyansibase%40aliyun.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3qOabkyOQOjhsJ3%2B9F%2Bssx-qqra-EBDWqGgmQrZhp%3DAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to