New scripter here. I have searched these forums and the MEL documentation, but if I knew which command I needed to search for, I would have solved my problem. I am trying to solve a specific animation exporting pipeline problem by writing a MEL script. I have a running script, but I am not obtaining the right data from it.
I need to write out the translation or rotation data for each joint per frame. I have a working structure, it's ugly, but workable. Two nested loops. Efficiency can come later.
The outer loop goes joint by joint, and the inner loop goes frame by frame, but only for the active keys, obtained using "keyframe -query -timeChange $joint".
In the inner loop (one iteration per active keyframe) I have the command "currentTime -update false $keyTime" to set the time to the keyframe, and then I use "xform -objectSpace -query -rotation $joint" [or -translation] to extract the data.
What I obtain from this is what appears to be the correct frame 1 data for each joint repeated for every keyframe for that joint. The pointer on the time scale moves to each frame, times the number of joints, so I know the currentTime command is executing, I just get the wrong data.
So I was looking for a suggestion of what command to use, given I know the joint and the keyframe time I want to get the data from.
<* Wes *>