Hey guys!

Does anyone know a better way of querying selected keyframes in an 
animation curves for multiple objects?  
My overall objective is to save a variable that has the selection of 
keyframes stored, that I can later on make edits to.



Currently, I can query the name of the curves and the selected keyframes 
separately:

curve_names =  cmds.keyframe(q=True, name=True)
selected_index_keys =  cmds.keyframe(q=True, selected=True)


But if I wanted to do a simple edit to that selection, I can't just affect 
the selected keyframes:


magically_combined_selection = curve_names + selected_index_keys

cmds.keyframe(magically_combined_selection , relative=True, timeChange=5)




I feel like there should be an easy way to query selected keyframes that 
you can just pass through cmds.keyframe to edit as a whole.


Any ideas? =)

-- 
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/83f0d5c7-c13b-4915-b1aa-6400f7589c1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to