I'm trying to write a script that push down all actions in NLA-Editor. No matter how many actions exist, it should work.
This is the code I currently have:
bpy.context.area.type = "NLA_EDITOR" bpy.ops.nla.action_pushdown(channel_index = 1)
My problem is that I don't know what channel_index each action has. How can I get this index? Or is there a way to iterate through all actions in in the nla editor?