No announcement yet.

Sequencer Scripting to Export Data

  • Filter
  • Time
  • Show
Clear All
new posts

    Sequencer Scripting to Export Data

    Hi, i am searching for ways to export sequencer data to text files.

    For example, i create a sequence by keyframing some lights properties like color and intensity.
    Next i would like to be able to read each light, parse the keyframes/values pairs and write them to a text file
    Then i could use the data to control real lights or export the sequence to another application.

    If exporting a track to FBX, the data is exported in the file
    If a track is copy/pasted in text editor, the data is also present with time indication in ticks

    Click image for larger version  Name:	exportfbx.JPG Views:	1 Size:	176.7 KB ID:	1645604

    I started looking in the Python Api, MovieScene should definately be useful:

    Does someone have experience with that?

    With the Level sequence Actor Selected, i am able to get it and the level sequence in python...
    But how would i be able to get MovieScene/MovieSceneSequence to get all the tracks and infos i want?

    I do not see any method to get MovieScene from there

    What would be another "entry point"?

    import unreal
    sel = unreal.EditorLevelLibrary.get_selected_level_actors()
    lsa = sel[0]    #level sequence actor
    lseq = lsa.get_sequence()    #level sequence


      There's some python scripting examples for sequencer data here in the engine. Take a look and see if that helps.