Marker Operators

bpy.ops.marker.add()

Add a new time marker

bpy.ops.marker.camera_bind()

Bind the selected camera to a marker on the current frame

bpy.ops.marker.delete()

Delete selected time marker(s)

bpy.ops.marker.duplicate(frames=0)

Duplicate selected time marker(s)

Parameters:frames (int in [-inf, inf], (optional)) – Frames

Copy selected markers to another scene

Parameters:scene (enum in [], (optional)) – Scene
bpy.ops.marker.move(frames=0, tweak=False)

Move selected time marker(s)

Parameters:
  • frames (int in [-inf, inf], (optional)) – Frames
  • tweak (boolean, (optional)) – Tweak, Operator has been activated using a tweak event
bpy.ops.marker.rename(name="RenamedMarker")

Rename first selected time marker

Parameters:name (string, (optional, never None)) – Name, New name for marker
bpy.ops.marker.select(extend=False, camera=False)

Select time marker(s)

Parameters:
  • extend (boolean, (optional)) – Extend, Extend the selection
  • camera (boolean, (optional)) – Camera, Select the camera
bpy.ops.marker.select_all(action='TOGGLE')

Change selection of all time markers

Parameters:action (enum in ['TOGGLE', 'SELECT', 'DESELECT', 'INVERT'], (optional)) –

Action, Selection action to execute

  • TOGGLE Toggle, Toggle selection for all elements.
  • SELECT Select, Select all elements.
  • DESELECT Deselect, Deselect all elements.
  • INVERT Invert, Invert selection of all elements.
bpy.ops.marker.select_box(xmin=0, xmax=0, ymin=0, ymax=0, wait_for_input=True, mode='SET', tweak=False)

Select all time markers using box selection

Parameters:
  • xmin (int in [-inf, inf], (optional)) – X Min
  • xmax (int in [-inf, inf], (optional)) – X Max
  • ymin (int in [-inf, inf], (optional)) – Y Min
  • ymax (int in [-inf, inf], (optional)) – Y Max
  • wait_for_input (boolean, (optional)) – Wait for Input
  • mode (enum in ['SET', 'ADD', 'SUB'], (optional)) –

    Mode

    • SET Set, Set a new selection.
    • ADD Extend, Extend existing selection.
    • SUB Subtract, Subtract existing selection.
  • tweak (boolean, (optional)) – Tweak, Operator has been activated using a tweak event