I'd like to add a Timeline Marker via python script. How can I do it?

Using bpy.ops.clip.add_marker() requires me to have the context for command, so I'd prefer something like

marker = timelinemarker.new()

1 Answer 1


I found it after browsing through the api and checking out some other people's code.

import bpy

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

see TimelineMarkers for more info


You must log in to answer this question.

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