i'm wiriting a script to get animation data into shelf(much like the clip version of the pose2shelf.MEL)
i find setkeyframe and settangant are the 2 commands i can use to write into the shelf command.
and i figure out to use timecontrol -animcurvenames to query the animcurve node name of attributes
and findkeyframe to locate the keyframes
however, i don't know how to query the data stored in animCurve.
i see a spreadsheet of values in attr editor when i select the animcurve node. it makes a lot of sense that there should be a way to query all the "time" "value" tanent type, tangin, tangout, etc for all the keyframes in the animCurve.
but i just can't find the method after some seraching in documentation
i also find that getAttr animcurve_name.i and animcurve_name.o can get the current keyframe time and value. but how about other tangent infomations?
to be able to copy animation, i think of the copykeys procs used in MAYA timeslider, but i don't know how to exact what is in the "animateion clipboard"
finally, is there excpetional case, that i can't simply copy those keyframe time value and tangent values to replicate the animation later. e.g. quaterioinon rotation?
any idea?