Announcement

Collapse
No announcement yet.

Sequencer Scripting to Export Data

Collapse
X
  • 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:
    https://docs.unrealengine.com/en-US/...sequence%20key

    Does someone have experience with that?

    #2
    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
    https://docs.unrealengine.com/en-US/...lsequenceactor

    What would be another "entry point"?


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

    Comment


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

      Engine\Plugins\MovieScene\SequencerScripting\Content\Python\sequencer_examples.py

      Comment

      Working...
      X