Is there a way to copy a whole anim curve for an attribute and write it to a file, or do I have to go frame by frame and write the attributes per key to the file?
QUOTE
or do I have to go frame by frame and write the attributes per key to the file?
oh my god no!
Its really simple! I mean: I hope you don't expect a command like "writeAnimCurveToFile".. but you can do the following:
CODE
keyframe -q pCube1_translateX;
// Result: 0 12 25 //
keyframe -q -vc pCube1_translateX;
// Result: 11 -1.806879 -1.358327 //
keyframe -q gets the key times and -q -vc gets all the values each in an array. You could fprint them to a file how you like. Shouldn't be a problem.
BTW: Doug? your funny code snippet-signature.. you could make it a little shorter:
delete listRelatives -ad; ... Then it wouldn't be funny anymore. But you could omit the select! ;D