3
$\begingroup$

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()
$\endgroup$
7
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.