Mayaで選択ノードのアトリビュートエディタ一気に開くやつ
code:ae.py
def open_ae_selected_nodes():
selected = cmds.ls(sl=True)
if not selected:
return
ae_tab = mel.eval('$gAETabLayoutName = $gAETabLayoutName')
for node in selected:
cmds.select(node)
mel.eval("AEbuildControls;")
mel.eval("autoUpdateAttrEd;")
cmds.currentTime(1,e=True)
target_index = next((i for i, x in enumerate(cmds.tabLayout(ae_tab, q=True, tabLabelIndex=True)) if x == node),None)
if target_index is None:
continue
cmds.tabLayout(ae_tab, e=True, selectTabIndex=target_index+1)
mel.eval("copyAEWindow;")
cmds.select(selected)
open_ae_selected_nodes()