Quick question that I’m surprisingly having a lot of trouble finding the answer to. I’ve written an exporter that exports the translation/rotation of each joint in an animated skeleton for each frame, but I can’t find where I can query what the current frame rate.
I have found the fps setting in the RenderSettings, but there are two problems
a) I don’t know how to get to that value through the python api?
b) It seems like thats just the fps for rendering, not for animation. I would’ve thought that there would be a way to set/get the animation fps in the time line somewhere, as there’s no reason for the render fps and animation fps to be dependent.
If anyone can answer a and/or b, I’d really appreciate it.
Just to be clearer:
My script will get the x rotation of a joint at a particular frame, n, by calling
curve.evaluate(n) (where curve is the euler x channel, for example). How can i find out how much time has passed between n and n+1?