scriptJob event that will return the name of the modified attribute made in graph editor

I am trying to use a scriptJob event that will allows me to:

  • detect whenever a change is made in graphEditor
  • and knowing which attribute it has been modified?

I tried using the following:

def ge_track():
    print 'changes made in graph editor'
test = cmds.scriptJob(event=["graphEditorParamCurveSelected", ge_track])

While it does detects whenever I highlighted a said key of an attribute (whether did I modify the value or not), but I could not tell which attribute it was effected on.