# Bake Animation Sequence from code

**URL:** <https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638>\
**Category:** Cinematics & Media\
**Tags:** automation-tool, skeletal, unreal-engine, question, baked\
**Created:** [October 7, 2021, 10:48am UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638 "2021-10-07T10:48:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![herobank110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herobank110](https://forums.unrealengine.com/u/herobank110)\
**Post date:** [October 7, 2021, 10:48am UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638/1 "2021-10-07T10:48:41Z")

</div>

In Sequencer on the menu of a binding for a skeletal mesh component there is an option called ‘Bake Animation Sequence’ (see screenshot). I am looking for a way to automate this without the GUI in an editor tool.

Thank you!

 ![350012-sequencer-bake-anim-sequence.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/0/060e96f18aaf49128c32808af6f27f64d679286e.png)

---

<div class="post-metadata">

**Author:** ![SkyOHorizon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkyOHorizon](https://forums.unrealengine.com/u/SkyOHorizon)\
**Post date:** [May 7, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638/2 "2022-05-07T13:53:10Z")

</div>

\Engine\Plugins\MovieScene\SequencerScripting\Content\Python\sequencer\_anim\_examples.py  
this file template could work for you, using unreal.SequencerTools.export\_anim\_sequence()

but I have got a new problem: how could I using it in multi thread? It seems like this function only work in the game thread?

---

<div class="post-metadata">

**Author:** ![Nhat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nhat](https://forums.unrealengine.com/u/Nhat)\
**Post date:** [July 11, 2023, 7:40am UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638/3 "2023-07-11T07:40:44Z")

</div>

you can get started with this “unreal.SequencerTools.export\_anim\_sequence()”  
I already tested , and it worked

---

<div class="post-metadata">

**Author:** ![JAY.PERSY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JAY.PERSY](https://forums.unrealengine.com/u/JAY.PERSY)\
**Post date:** [June 18, 2024, 3:12pm UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638/4 "2024-06-18T15:12:41Z")

</div>

Hello Nhat Sir,  
Were you able to dispatch the “bake animation sequence” of a “skeletal mesh” spawned inside a level sequencer to a folder with in the Unreal Engine as an animation sequence (not FBX)? If yes could you please share some code snippets ?

Thanks in advance  
YAHGI (alias Jay)

---

<div class="post-metadata">

**Author:** ![BadookaSlam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BadookaSlam](https://forums.unrealengine.com/u/BadookaSlam)\
**Post date:** [March 17, 2025, 10:33am UTC](https://forums.unrealengine.com/t/bake-animation-sequence-from-code/489638/5 "2025-03-17T10:33:59Z")

</div>

If have the python code please could you post it? Have the same requirement.
