[Mel/Python] Get a name of selected object in Attribute Editor.

[Mel/Python] Get a name of selected object in Attribute Editor.

Anonymous
Not applicable
1,909 Views
2 Replies
Message 1 of 3

[Mel/Python] Get a name of selected object in Attribute Editor.

Anonymous
Not applicable

Hello. Is there a way to know what object is currently selected in Attribute Editor?
untitled_ - Autodesk Maya 2020_ untitled   ---   p (2).png

0 Likes
Accepted solutions (1)
1,910 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
currentTab = mel.eval('$currentTab = $gAETabMarker')

 is what I was looking for.

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

 

import maya.mel as mel
gAECurrentTab = mel.eval('$gAECurrentTab = $gAECurrentTab')

 

0 Likes