Method

project.setVideo

Sets the active timeline's frame and rate, as an undoable edit.

Parameters

  • pathstringrequired

    The project folder.

  • videoVideoSettingsrequired

    The frame and rate.

ReplyEditorView

{
  "method": "project.setVideo",
  "path": "/edits/Reel",
  "video": {
    "width": 3840,
    "height": 2160,
    "rateNum": 60,
    "rateDen": 1
  }
}

A zero dimension or rate is refused.

colorSpace is part of VideoSettings (sdr, hlg or pq) and absent means sdr, so a call that leaves it out puts an HDR timeline back to SDR. Send the timeline's current value to keep it.