Thank you very much for answering,... I understand it better with the example you write, what happens now is that there is something in the syntax that gives error. Maybe in this part it is missing something else or it is written in another way?
and then a for loop for curve in curves El miércoles, 17 de agosto de 2022 a las 6:14:21 UTC-3, romanp...@gmail.com escribió: > 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/beef1f3f-dbd1-4adf-845c-5409b1a0c8bdn%40googlegroups.com.