본문으로 건너뛰기
cccskills
무료GitHub에 공개

resolve-scripting

Practical DaVinci Resolve Studio scripting knowledge for building edits from code - timelines from a template, frame-exact appends, zoom, grades, custom frame sizes, subtitles, renders, and the traps that silently fail or crash Resolve 21. Use when writing or debugging any script that talks to Resolve.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills스타 333(GitHub 333 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Resolve scripting: what actually works (Resolve Studio 21)

Check the API for the installed version before trusting memory: the scripting docs ship with Resolve, and functions move (some changed between 20 and 21).

Golden rules

  • Only add. New timelines (never overwrite: "name v2"), imports into bins, clips on free tracks. Never touch the creator's template or their timelines/media. Never switch/create/close projects.
  • Verify every write by reading it back. Many setters return True and do nothing.
  • Save the project at the end of each step.

Building the timeline

  • Find bins by name recursively. Import files once (reuse the media pool item if the same path is already imported).
  • Copy the template with DuplicateTimeline(name), move it into the timelines bin, then empty every track (unlock locked tracks temporarily). The copy keeps the track FX chain (voice treatment on A1, music treatment on A2) - that's why we copy instead of creating.
  • Frame rate mismatch footage vs template: stop and ask. If they choose the footage rate: useCustomSettings=1, timelineFrameRate, timelinePlaybackFrameRate.
  • Custom frame (e.g. 4:3 2880x2160): set timelineResolutionWidth/Height and the output resolution, then input mismatch behaviour scaleToCrop ("scale full frame with crop"). The default scaleToFit letterboxes. Read it back.
  • AppendToTimeline: endFrame is exclusive. For audio-only media, start/end frames count in the clip's own frame rate (a WAV reports 23.976), not the timeline's.
  • Audio duration from timecode: at 23.976, a timecode counts 24 frames per second. seconds = ((h*3600+m*60+s)*round(fps) + f) / fps. Using 23.976 per second lost 16 frames on an 11-minute music bed.
  • Check after laying: piece count on V1 and A1, each duration, no gaps.

Picture

  • Zoom: item.SetProperty("ZoomX", z) and "ZoomY" (centre anchored). Works in 21.
  • Grades: Timeline.ApplyGradeFromDRX fails in 21. Use each item's graph: item.GetNodeGraph().ApplyGradeFromDRX(path, 0). It occasionally fails on one piece and works on a retry: try twice, then count graded pieces (node count) and report.
  • Never put a log look on non-log footage. Read the profile from the camera's sidecar XML, not from luma guesses.
  • SetClipColor("Green") on B-roll pieces.

Audio

  • Normalize: Timeline.NormalizeAudioLevel(items, {normalizationMode, targetLevel, targetLoudness, setLevelMode}) with resolve.NORMALIZE_AUDIO_SET_LEVEL_INDEPENDENT. See voice-and-audio for values.
  • Per clip: AudioVolume (dB), SetVoiceIsolationState({"isEnabled": True, "amount": 50}), Dialogue Leveler properties. EQ is not scriptable; Fairlight presets can be applied if the user saved some.
  • Silent track trap: a template's music track had a track-level AI Music Remixer switched on (and a Stereo Width insert). Anything placed on that track rendered as silence while the same file played on another track. The API can't read or toggle it; it's in the Edit page → select the track header → Inspector → Audio. If music is silent, check that first.

Diagnosing audio the reliable way

When "there's no sound", don't guess. Render a few seconds of audio from Resolve and compare it with the source file:

  • Project render: SetCurrentRenderFormatAndCodec("mov", "ProRes422LT"), SetRenderSettings({SelectAllFrames: False, MarkIn, MarkOut, TargetDir, CustomName, ExportVideo: False, ExportAudio: True, AudioCodec: "lpcm"}), AddRenderJob().
  • From an external script, rendering only starts with StartRendering([job], False) (isInteractiveMode False). Other forms return False and the job stays "Ready".
  • Render into a folder without spaces (a path with spaces left the job unstarted).
  • Wait on GetRenderJobStatus(job) until "Complete", not on IsRenderingInProgress() (it can be False before rendering begins).
  • Correlate the rendered audio with the source (mono, 8 kHz, best lag): ~0.9 = present, ~0.0 = missing. Least-squares gain tells how much of an SFX is in the mix.
  • Restore the Deliver settings afterwards (format, whole timeline, video+audio on, output folder): your test changes the creator's export settings.
  • AddRenderJob jumps to the Deliver page; SetTrackEnable only works on the Edit page (on other pages it returns True and does nothing). Go back with OpenPage("edit").
  • Timeline export (Timeline.Export(path, EXPORT_DRT)) is a zip of XML with per-track fields; deeper mixer state is a compressed binary. Useful for diffing a working vs broken track.

Subtitles

  • MediaPool.AppendToTimeline with an imported .srt ignores recordFrame and appends the subtitles after the end of the timeline. Passing start/end frames for it crashed Resolve 21.1.
  • Use File > Import > Subtitle in the UI (the creator clicks it, or computer-use). It places the first cue at the playhead and shifts the rest relative to it, so make the SRT's first cue start at 00:00:00,000, or everything lands early.
  • Subtitle track style can't be set by script; read it from a DRT export if you need to record it.

Overlays and media cache

  • Re-rendered files with the same name can keep playing stale cached frames: give each new render a new name (-v2) and replace the clip.
  • Place overlays on the first free unlocked track from V2 up; never on V1.

Reading the timeline the creator edited

Before music, captions or graphics, map the timeline as it is now: walk V1 items (name, start, left offset) to find where each kept word and each B-roll landed. They trim and delete things; follow their version.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

broll

무료

How to find, watch and cut B-roll in a vlog - clips with no speech placed by time between talking clips, chosen by their action and story, not a fixed length. Use when footage mixes talking clips (A-roll) and silent clips, or when the creator says the B-roll pacing feels wrong.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

captions

무료

Clean, readable burned-in style subtitles from the verbatim transcript - stutters and fillers removed, spoken slang written correctly, one short line at a time, names checked, every line read by Claude before import into DaVinci Resolve. Use for "subtitles", "captions", "legendas", or when the creator reports wrong words in the captions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

The one-command first-pass edit. Takes footage from raw video/, transcribes it, cuts retakes and dead air while keeping a natural vlog rhythm, keeps B-roll, and builds the timeline in the open DaVinci Resolve project (footage in bins, a copy of the creator's template timeline, markers, zoom, grade, audio normalize). Use for "/edit-video", "edit the new video", "do it", or follow-up changes to a cut.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

Keeps a video motion-graphics kit and its editable Figma boards in sync - the creator designs and tweaks in Figma, Claude ports the changes into the Remotion components and brand tokens, and mirrors code changes back. Use when the creator says they changed the boards, wants a new graphic designed, or wants the kit visible in Figma.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

Brand motion graphics for creator videos - a Remotion component kit (key phrases, lists, lower thirds, journeys, big words…) timed to the creator's words from a beats sheet, rendered as transparent ProRes and placed on V2+ in DaVinci Resolve, with face-safe and caption-safe layouts. Use for "overlays", "motion graphics", "make it interesting", "graphics", or when overlays cover the face or fight the captions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

Scores a vlog with Epidemic Sound - one music cue per section edited to exact length, a ducking envelope baked into one bed (quiet under speech, up on B-roll), and tasteful transition sound instead of cheesy literal foley. Use for "add music", "background music", "sound effects", "SFX", or when the creator says the music or SFX feel wrong.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

appariciojunior/video-editor-skills3332026년 10월 23일 업데이트

appariciojunior의 스킬 모두 보기

이 스킬의 문제 신고