I'm working on a program that outputs data in several CSV files from Maya 2018. It reads an object name from a setting file, then creates an array of every keyframe that object has, then exports a column of keyframes and a column of values of the different axes associated with the object.
This unfortunately causes a problem when using cubic interpolation to connect the dots, so I'm trying to find a better way to collect the data. My current idea is to capture not only the keyframes, but also the frames immediately before and after the keys as well as the midpoints between the keys, but this seems clunky.
Any recommendations?