getting marked attributes

28 views
Skip to first unread message

kevco...@gmail.com

unread,
Jan 6, 2015, 6:43:35 PM1/6/15
to python_in...@googlegroups.com
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

Marcus Ottosson

unread,
Jan 7, 2015, 2:39:18 PM1/7/15
to python_in...@googlegroups.com

Have a look at the cmds.channelBox command.

# tz, rx and ry selected
>>> print cmds.channelBox('mainChannelBox', query=True, selectedMainAttributes=True)
# Result: [u'tz', u'rx', u'ry'] #


--
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/41e02cfb-a92e-497d-8df6-e3ee899904ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Marcus Ottosson

unread,
Jan 7, 2015, 2:39:36 PM1/7/15
to python_in...@googlegroups.com

kevco...@gmail.com

unread,
Jan 7, 2015, 8:32:33 PM1/7/15
to python_in...@googlegroups.com
Oh geeze, of course.

Thanks Marcus!
Reply all
Reply to author
Forward
0 new messages