Shot template6 s
Shot template

Code Diff

An edit appears as a colored diff, with removed lines collapsing in red and added lines expanding in green.

Use in Montagist

The library is not in the workbench yet. This takes you to the workbench for now.

Length6 s6 s by default
FrameLandscape 16:9
FootageNo footage needed
TagsCode

When to use it

  • Use when showing how code changed, with removed and added lines clearly marked.
  • Use to explain a fix or optimization with a before-and-after code change.

Prompt and how-to· Chinese only for now

Prompt

做一个「代码差异」这样的整镜画面:一处修改用彩色差异来呈现:删掉的行以红色收拢,新增的行以绿色展开,修改的过程一目了然,时长约 6 秒,画面 1920×1080。用在:讲到某段代码怎么改,想让观众清楚看到新增和删除的部分时用;讲修复或优化步骤,需要用前后对比的画面突出改动时用。

要什么画面

一处修改用彩色差异来呈现:删掉的行以红色收拢,新增的行以绿色展开,修改的过程一目了然。

什么时候用

  • 讲到某段代码怎么改,想让观众清楚看到新增和删除的部分时用。
  • 讲修复或优化步骤,需要用前后对比的画面突出改动时用。

来源

这一条原样收自一个开源动效库(Apache-2.0),预览是用它的原作在奇镜的制作引擎里渲出来的。看原作

Source and licence

Source and credit
Original post
github.com
Original author
HeyGen
Original licence
Apache-2.0
Note
registry@46f6cb356785

The prompt and how-to are our own writing, not the original post.

This entry
Licence
Apache-2.0
Version
Version 1

Free to use in your own videos, commercial work included.

The library is not in the workbench yet. This takes you to the workbench for now.

Use in Montagist