hey sorry for the wait,

*curves =**cmds.keyframe(sl=True, q=True, n=True) #this get the name of the
animcurve of the selected key*


*curves = cmds.animCurveEditor('graphEditor1GraphEd', curvesShown=True,
q=True) #this return the names of the animcurves that are shown in
the graph editor*

and then a for loop
*for curve in curves*
*    key1 = mc.currentTime(**curve, **q = True)*
*    key2 = mc.findKeyframe(**curve, **t = (key1,key1), w = "next")*
*.......*
*    cmds.setKeyframe(curve, i = True, t = (key2 -p/2))*

Regards
PERRIN Roman

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADZEWu0EfLaNuuXwKWOLULVYhiMvvLoUveg9r6BYtoLrsHwiBg%40mail.gmail.com.

Reply via email to