1
$\begingroup$

I found the timeline_markers function to add markers in the timeline like:

import bpy
scene = bpy.data.scenes['Scene']
scene.timeline_markers.new('F_01', frame=1)

but I can't find the similar function deal with sequence editor

$\endgroup$
2
  • $\begingroup$ Well, the data path i think is scene.sequence_editor.markers, but I will check. $\endgroup$
    – TheLabCat
    Jun 10, 2021 at 11:00
  • $\begingroup$ timeline and vse share the same markers. $\endgroup$
    – lemon
    Jun 10, 2021 at 13:41

1 Answer 1

1
$\begingroup$

Like Lemon said, the Video Sequence Editor and the Timeline Editor share the same markers. So, your code from above should work for the VSE.

  • Open the Video Editing workspace and add a movie strip. Then add the Scripting workspace (click on the + next to the tab Render and choose General > Scripting.
  • Create a new script (click on the button + New at the top) and paste your code from above.
  • Run the script (click on triangle at the top).
  • Switch to the Video Editing workspace. There you will find the marker F_01 at frame 1.

If you need more details about how to create a script; see https://vse-docs.readthedocs.io/extra-tools/python/scripting-workspace.html#how-to-use-the-script-editor-efficiently

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .