Hi everyone.
EDIT: see BATfinger answer on blender stack exchange
How can I access F-curves points ONLY for visible Fcurve (when “show_only_selected” is on) in the graph editor ?
A way to directly iterate on f-curves would be really nice (if not necessary) to apply some script on what the user see/isolate.
Currently I’m checking in the context of the graph editor if we are looking only at the selection with
context.area.spaces[0].dopesheet.show_only_selected
then iterating in all action if only selected is On or in the actions of selected objects in scene if it’s Off.
But even if you iterate over selected object’s actions only, you still have the problem of unselected bones in selected armatures that aren’t showing up in the graph editor and are still affected by your script without the user knowing (and maybe for animated scene properties too) !
After searching a bit. I found that the great Jacques Luke (animation node creator :RocknRoll:) had the same question back in 2015 (see here)
I asked him if he found a solution since then but it’s a negative and he isn’t working on this anymore…
Any Ideas ?