pyMel method for listing selected channelbox attributes

71 views
Skip to first unread message

Brian Eyre

unread,
Jun 9, 2014, 8:39:18 PM6/9/14
to python_in...@googlegroups.com
Hi Folks,

I'm just getting into pyMel at the moment, and am wondering if there's a more elegant method for obtaining the current selected channelbox attributes than the following:

selectedAtts = mel.eval('string $temp2[]= `selectedChannelBoxAttributes`')

Just curious, I guess (it does work, after all)!

Kurian O.S

unread,
Jun 9, 2014, 8:42:53 PM6/9/14
to python_in...@googlegroups.com
cmds.channelBox('mainChannelBox', q=True, sma=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/3d109b1d-b401-4b9e-af40-353b1768f972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--:: Kurian ::--

Brian Eyre

unread,
Jun 9, 2014, 9:01:24 PM6/9/14
to python_in...@googlegroups.com
Thanks Kurian,

Works a treat :-D


On Monday, June 9, 2014 5:42:53 PM UTC-7, Kurian wrote:
cmds.channelBox('mainChannelBox', q=True, sma=True)
On Mon, Jun 9, 2014 at 5:39 PM, Brian Eyre <brian...@googlemail.com> wrote:
Hi Folks,

I'm just getting into pyMel at the moment, and am wondering if there's a more elegant method for obtaining the current selected channelbox attributes than the following:

selectedAtts = mel.eval('string $temp2[]= `selectedChannelBoxAttributes`')

Just curious, I guess (it does work, after all)!

--
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_maya+unsub...@googlegroups.com.



--
--:: Kurian ::--

Andres Weber

unread,
Jun 10, 2014, 3:26:25 PM6/10/14
to python_in...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages