Python API access to F-curve/keyframes visible for the user
The purpose is to expose the list of F-curves visible by the user in Graph editor (Taking all his filter into account).
This seems trivial but it's not... finding the Fcurves you want in python is already not so easy (to me at least). It will be a first 'filter' and a huge improvement to make addons for animation.
I developed some tools for graph-editor, and I had to implement a big set of functions to avoid problems when the user wanted to affect only the points he selected ! (because when you iterate in F-curves, a keyframe point can be selected without being visible...)
After this, it will be super easy to do some action on user's real selection.
Have a nice blend.
3 Comments
Hi,
This (access to our internal filtering api's) has been on my todo list for a while now. In fact, I'd been planning on working on this either during/after code quest. So, hopefully PyAPI access will be available soon. :)
@Joshua Leung: Turbo awesome ! This is great news. Thank you Joshua!
@Joshua Leung: Hi ! I saw a post of another person (pacermike) on blender artist that need to get only visible fcurve. Did you have time to expose this in the API ? If it's there now, can you give us an API path example on his thread ? Thank you for your work !