animCurve, key values and time
import maya.cmds as mc; ## Querying # Current time crntT = mc.currentTime(q=1); # Getting anim nodes of current key selection animNodesOfSelectedKeys = mc.keyframe(q=1,sl=1,n=1); offsetval= 12.34; if animNodesOfSelectedKeys: for aNode in animNodesOfSelectedKeys: # Current time value of selected key curve keyCurveValue = mc.keyframe(aNode,q=1,ev=1,t=(crntT,crntT))[0]; # Num of keys of an animCurve node numKeys = mc.keyframe(animCurveNode,q=1,keyframeCount=1); # All key "TIMES" times = mc.keyframe(animCurveNode,index=(0,numKeys-1),q=1); # All key time "VALUES" vals = mc.keyframe(animCurveNode,t=(times[0],times[len(times)-1]),q=1,valueChange=1); ...