Have a look at the cmds.channelBox
<http://help.autodesk.com/cloudhelp/2015/ENU/Maya-Tech-Docs/CommandsPython/index.html>
command.
# tz, rx and ry selected>>> print cmds.channelBox('mainChannelBox',
query=True, selectedMainAttributes=True)# Result: [u'tz', u'rx',
u'ry'] #
On 6 January 2015 at 23:43, <[email protected]> wrote:
> Hey Guys,
>
> How do I go about getting marked attributes in python?
>
> So if I have a locators Translate X, Y & Z attributes marked in the
> channel box.
>
> I just have some easy buttons for setting keyable and unkeyable, but I'd
> like them to operate on marked attributes. I hope that makes sense.
>
> Thanks
> Kev
>
> --
> 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/41e02cfb-a92e-497d-8df6-e3ee899904ab%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
*Marcus Ottosson*
[email protected]
--
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/CAFRtmOC3gNb1V7y35zWJRrx-aos5WJsrbS_N7BA2D_%3DgeE5%3DBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.