Scripting level sequences creation

Hi,
I’m trying to make an Editor Utility Blueprint that would create a number of Level Sequences corresponding to selected cameras (and name them accordingly). The blueprint I managed to wire together doesn’t show any errors and in fact creates the sequences as expected. However if I try to open any of the newly minted sequences, the engine instantly crashes.
Could someone tell what’s going wrong?

Hi! Very old post, but i face the same issue. Could you resolve this?

You cannot simply create assets as object and use them. This is what factories are for and they are not exposed to BPs so without c++ you won’t get far.

Hi @urancle1 ,

Yes, I fugured if I can’t do it in BP I’ll try Python and it worked. There are examples on this particular topic in the engine, here:
…\Engine\Plugins\MovieScene\SequencerScripting\Content\Python
I found most of what I needed in there, hope that helps you as well!

Hi @Ligazetom , is there any in depth tutorials or at least written descriptions of what these factories are and how they work? I tried searching for that but found nothing except that they exist and you need them to do stuff. Managed to automate what I needed with Python but still confused about the whole factory thing.

Yes, they are not really documented that much, you’d need to dive into source for this and each factory is different. For some it is totally fine to just create an instance and make it create a new asset, but some need to be set up first.