Script to add bits from Action Editor into Timeline

Hi, blender/python newbie here :slight_smile:

I just wanna ask: is there a way to add frame bits from Action Editor into the main Timeline via python script?

Say I have a walk-cycle action stored and I want to put that into the timeline using python script.

Can it be done by simple copy-pasting frame-by-frame from the target Action Editor into the Timeline? Is there a better way to do it other than this?

Thanks :smiley:

Or is it better to play around with the F-curves? Iā€™m planning to use pre-made animations (stored in the Action Editor) and append them into the main timeline using the script.

Any suggestions and help are welcome! :slight_smile:

Sorry for the mess-up. What I want to do is add multiple action strips into the NLA via a script (e.g.: when a button is pressed)

I hope that this way I can append multiple pre-made animations by pressing buttons. Is this possible? At least how to append action strips into NLA would be very helpful.