Announcement

Collapse
No announcement yet.

Create New LevelSequence with Python?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Create New LevelSequence with Python?

    How do you create a new level sequence with Python? I can't find this anywhere. I am developing an engine workflow for a previs company and I'm trying to automate the process of exporting animation from maya and importing it into a new level/levelSequence. I found the necessary code for creating the level and importing animation assets and loading animation to a level sequence, but i can't find the commands needed to create a level sequence or duplicate an existing template sequence.
    thanks.

    #2
    I finally found the answer. I'll include it here if anyone else is looking for the same thing.
    I don't understand why the python scripting is so convoluted. Why can't there be simple wrappers for all this stuff, like unreal.createThisAssetType(path, name)?

    def createNewLevelSequence(dest, name):

    asset_tools.create_asset( asset_name = name, package_path = dest, asset_class = unreal.LevelSequence, factory=unreal.LevelSequenceFactoryNew)

    Comment

    Working...
    X