Thank you very much for the answer  TTw TTa  ! I will keep in mind the 
method you suggest.
In the end I went another way.
callback_id = 
OpenMayaAnim.MAnimMessage.addAnimKeyframeEditedCallback(my_keyframe_callback, 
None)
El viernes, 17 de febrero de 2023 a las 6:24:09 UTC-3, TTw TTa escribió:

> ``` python
> from maya import cmds
>
> editor_name = "graphEditor1"
> editor_outline_name = editor_name + "OutlineEd"
>
>
> print(cmds.outlinerEditor(editor_outline_name, q = 1, exists = 1))
> objects = cmds.outlinerEditor(editor_outline_name, q = 1, 
> selectionConnection = 1)
>
> print(cmds.selectionConnection(objects, q = 1, object = 1))
>
> ```
> this is the code may what your need
> 在2023年2月12日星期日 UTC+8 06:11:44<Darwin Giordano> 写道:
>
>> Isn't there a way in real time that selecting in the graph editor an 
>> attribute detects that the attribute is selected and if the user selects 
>> another attribute from the graph editor it detects that the selected 
>> attribute is changed to a different one?
>> This without selecting animation keys. I just want to be able to detect 
>> which attribute is currently selected in graph editor.
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/09db9715-ecfa-4c20-aa48-b12cec59836dn%40googlegroups.com.

Reply via email to