"""Mark three planning beats on the active scene's timeline."""
import bpy

# Choose frames that fit your scene range, then rename the beats for your shot.
START = 1
MIDDLE = 12
END = 24
scene = bpy.context.scene

if not scene.frame_start <= START < MIDDLE < END <= scene.frame_end:
    raise ValueError("Choose three increasing frames inside the scene's frame range.")

for label, frame in [("Start", START), ("Middle", MIDDLE), ("End", END)]:
    name = "RP Beat · " + label
    marker = scene.timeline_markers.get(name)
    if marker is None:
        scene.timeline_markers.new(name, frame=frame)
    else:
        marker.frame = frame

print("Review the three RP Beat markers in the Timeline or Dope Sheet.")
