- Posts: 38
- Joined: Wed Sep 25, 2019 10:25 am
- Real Name: Volker Klink
- Code: Select all
resolve = bmd.scriptapp('Resolve')
project = resolve.GetCurrentProject()
timeline = project.GetCurrentTimeline()
# Frame rate. You can also get the actual rate from GetSetting()
fps = 23.976
# BPM
bpm = 60
# Set offset for the starting marker
offset = 0
markerSpacing = 60*fps/bpm
# Place 100 timeline markers. You can also calculate the marker count
# from the timeline length and the markerSpacing
for i in range(0 + offset, 100, round(markerSpacing)):
timeline.AddMarker(i, 'blue', 'My beats', 'My note', 1)
These two tutorials are kind of old, but the fundamentals haven't changed a lot. I have a few other tutorials on scripting there.