layer-motion-graphics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLayer Motion Graphics
Layer 动态图形
Overview
概述
Motion graphics on Layer split into two jobs that must not be mixed. Pictures that move (a logo
assembling, an emblem catching light) are a generation with a video model. Words are never
generated: video models misspell, cannot use a font file, and drift between frames. Words go on as
text items in a edit, set in the brand font.
render_video_timelineGeneration mechanics are in the skill and motion prompting in . Timeline
assembly basics (cutting, safe areas, audio length) are in , and exact text on
stills is . Reusing one motion design for many variants is ;
a shared colour and texture finish is .
layerlayer-videolayer-video-timelinelayer-typographylayer-motion-templateslayer-video-looksIf a sibling skill named here is missing from your available skills, ask the user to install it
(); unattended, proceed from tool schemas and flag the
gap.
npx skills add layerai/skills --skill <name>Layer 上的动态图形分为两类必须分开处理、不可混用的工作。会动的画面(Logo 组装、徽标捕捉光线)通过视频模型生成。文字绝不能生成:视频模型会拼错文字,无法使用字体文件,而且会在帧与帧之间发生漂移。文字应作为 项加入 编辑,并使用品牌字体排版。
textrender_video_timeline生成机制位于 skill 中,运动提示词位于 中。时间线编排基础(剪切、安全区域、音频时长)位于 ,静帧中的精确文字排版位于 。将同一套动态设计复用于多个变体请使用 ;统一的色彩与纹理风格处理请使用 。
layerlayer-videolayer-video-timelinelayer-typographylayer-motion-templateslayer-video-looks如果这里提到的某个同级 skill 不在可用 skill 列表中,请让用户安装();在无人值守模式下,则根据工具 schema 继续操作,并明确说明这一缺失。
npx skills add layerai/skills --skill <name>Quick reference
快速参考
| Job | Route |
|---|---|
| Logo reveal | |
| Idle logo loop | |
| Title, lower third, CTA | Timeline |
| Text entering or leaving | A transition between items: |
| Word-by-word kinetic type | Consecutive |
| Shaped reveal of an image | |
| Plate behind type | A |
| 工作 | 路径 |
|---|---|
| Logo 揭示 | |
| Logo 待机循环 | |
| 标题、下三分之一字幕、CTA | 时间线 |
| 文字入场或离场 | 条目之间的转场: |
| 逐词动态排版 | 连续的 |
| 图像的形状揭示 | 在 |
| 文字背后的底板 | 文字下方的 |
Reveals and loops: generate the picture, pin the frame
揭示动画与循环:生成画面,锁定帧
A reveal is judged on its last frame, which is the one the viewer reads. Filter
with and , take the first result, and for its durations and trigger word. Pass
the exact logo file as , so the landing frame is the artwork rather than the model's
memory of it. is what the reveal grows from: an empty plate in the brand colour, an
abstract shape, or particles, from an existing still or one run (), sized
with and to the reveal's frame. Describe only the transition in the prompt ("gold shards converge and
lock into the emblem, light sweep across it at the end"), never the logo's letters.
list_base_modelsfilter.use_case: "image_to_video"filter.guidance_file_types: ["first_frame", "last_frame"]get_base_modellast_framefirst_frametext_to_imagelayer-imagewidthheightrender_video_timeline{workspace_id, template, videos, images, audios}template{width, height, fps, tracks: [{id, name, items, transitions}]}{id, type, start_frame, duration_in_frames}file_idslotlayout {left, top, width, height}effectsstart_from_in_secondsvolumesolidcolor{red, green, blue, alpha}generation_idget_generation_runAn idle loop takes the logo as both and , and a model with the
capability where the clip must repeat without a jump. Keep its motion small (a breathing glow, a
slow rim light) so the mark never leaves its own silhouette.
first_framelast_frameloopSet on a model filtered with when the sting must land on a
beat. Estimate with using the same files, then execute and poll
at .
duration_secondsfixed_duration: trueestimate_forge_priceget_forge_runpoll_interval_seconds揭示动画以最后一帧为评判依据,因为这一帧是观众最终看到的画面。使用 和 筛选 ,取第一个结果,再调用 获取其可用时长和触发词。将准确的 Logo 文件作为 传入,使落点帧直接采用原始设计稿,而不是模型凭记忆重绘的结果。 则是揭示动画的起点:可以使用品牌颜色的空白底板、抽象形状或粒子效果,素材既可来自现有静帧,也可来自一次 生成(),并通过 和 调整为揭示动画的画幅尺寸。提示词中只描述过渡过程(“金色碎片向内汇聚并锁定到徽标中,最后扫过一道光线”),绝不要描述 Logo 的字母。
filter.use_case: "image_to_video"filter.guidance_file_types: ["first_frame", "last_frame"]list_base_modelsget_base_modellast_framefirst_frametext_to_imagelayer-imagewidthheightrender_video_timeline{workspace_id, template, videos, images, audios}template{width, height, fps, tracks: [{id, name, items, transitions}]}{id, type, start_frame, duration_in_frames}file_idslotlayout {left, top, width, height}effectsstart_from_in_secondsvolumesolidcolor{red, green, blue, alpha}generation_idget_generation_run待机循环将 Logo 同时作为 和 ,并选用具备 能力的模型,确保片段重复播放时没有跳变。让运动幅度保持较小,例如呼吸式光晕或缓慢移动的轮廓光,使 Logo 始终不突破自身轮廓。
first_framelast_frameloop当品牌动画短片(sting)必须精准落在节拍上时,应在通过 筛选出的模型上设置 。使用相同文件调用 估算价格,然后执行任务,并以 为间隔轮询 。
fixed_duration: trueduration_secondsestimate_forge_pricepoll_interval_secondsget_forge_runType: set it, then move it with cuts
文字:先设置,再用切换赋予运动
A timeline item takes , (an uploaded .ttf or .otf; upload local fonts with
) or , , , ,
, , , (), (),
, and a box in composition pixels.
texttextfont_file_idrequest_file_upload_urlfont_familyfont_sizefont_weightletter_spacingline_heighttext_aligncolorstroke{color, width}shadow{color, x, y, blur}background_colorlayout{left, top, width, height}The timeline has no keyframes. An item's position, opacity and effects hold for its whole span.
Motion comes from two sources only:
- Transitions on a track's , each
transitions, with{id, type, from_item_id, to_item_id, duration_in_frames, easing}(direction,from-left,from-right,from-top) onfrom-bottom,slideandwipe.flipgives the overshoot that reads as designed motion;easing: "spring"suits an entrance,ease-outan exit. A transition joins two adjacent items on one track, so a title that slides in needs aease-inor empty-looking item before it.solid - Stepped items. Kinetic type is a run of items on one track, each one word or phrase, back to back on
textwith no overlap. Hard cuts on the beat read as rhythm; a shortstart_frameorfadebetween them reads as flow.wipe
Anything that must glide continuously (a slow push on the title, a sweep of light across the type) is
a generated clip of the type rendered as an image, not a timeline effect: the line,
then animate that still with as both frames and a "light sweep only, letters
unchanged" prompt, and check every frame for warping. Report the gap rather than promising a
keyframe move.
render_textimage_to_video时间线中的 项支持 、(已上传的 .ttf 或 .otf 文件;使用 上传本地字体)或 、、、、、、、()、()、,以及以合成画布像素为单位的 框 。
texttextfont_file_idrequest_file_upload_urlfont_familyfont_sizefont_weightletter_spacingline_heighttext_aligncolorstroke{color, width}shadow{color, x, y, blur}background_colorlayout{left, top, width, height}时间线没有关键帧。条目的位置、不透明度和效果会在其整个时长内保持不变。运动只能来自以下两种方式:
- 轨道 中的转场,每个转场为
transitions;{id, type, from_item_id, to_item_id, duration_in_frames, easing}、slide和wipe可设置flip(direction、from-left、from-right、from-top)。from-bottom会产生过冲,形成经过设计的运动感;easing: "spring"适合入场,ease-out适合离场。转场连接同一轨道上的两个相邻条目,因此滑入的标题前需要一个ease-in条目或视觉上为空的条目。solid - 分段条目。 动态排版由同一轨道上一连串 条目组成,每个条目包含一个单词或短语,并依据
text紧密衔接且互不重叠。跟随节拍硬切可形成节奏感;条目之间使用短start_frame或fade则可形成流畅感。wipe
任何需要持续平滑移动的内容,例如标题缓慢推近或光线扫过文字,都应采用将文字渲染为图像后生成的动画片段,而不是使用时间线效果:先用 渲染该行文字,再以 将该静态图同时作为两帧输入,并使用“仅扫过光线,字母保持不变”的提示词制作动画,然后逐帧检查是否发生字形扭曲。如果无法实现,应如实报告这一限制,而不要承诺支持关键帧移动。
render_textimage_to_videoReading time and placement
阅读时间与位置
Hold a title at least as long as it takes to read twice aloud, and convert that to frames at the
template's . A lower third holds for the whole time its speaker is on screen. Keep type
and logos well inside the frame edges, since social players overlay their own UI top and bottom;
check the platform's current safe-area spec rather than guessing a margin. Tracks composite in
reverse order: Track 1 is on top, so type goes on the first track and plates below it.
fps标题的停留时间至少要足够朗读两遍,再按模板的 将其换算为帧数。下三分之一字幕应在说话者出现在画面中的整个时段内保持显示。文字和 Logo 应远离画面边缘,因为社交平台播放器会在顶部和底部叠加自己的 UI;应查阅平台当前的安全区域规范,而不是凭经验猜测边距。轨道按反向顺序合成:Track 1 位于最上层,因此文字应放在第一条轨道,底板放在其下方轨道。
fpsWorked example
实例
"A 4-second logo sting for our trailer, then a lower third naming the studio."
- The logo PNG and the brand font are on the user's machine: upload both with
.
request_file_upload_url - with
list_base_models,filter.use_case: "image_to_video"andfilter.guidance_file_types: ["first_frame", "last_frame"]. Take the first result;filter.capabilities: {fixed_duration: true}for its durations.get_base_model - with a dark brand-colour plate as
estimate_forge_price, the logo asfirst_frame,last_frame, and the prompt "embers drift inward and fuse into the emblem, a single light sweep across it in the last half second, camera locked". Above 20 CUs, ask first.duration_seconds: 4 - , poll
execute_forge, and step to the last frame of each output against the logo file. Reject any that changed the mark.get_forge_run - Timeline at 30 fps: Track 1 holds a (8 frames) then a
soliditem "Studio Name" in the brand font, joined by atexttransitionslide,direction: "from-left",easing: "spring". Track 2 holds the sting video item.duration_in_frames: 12 - with that template; then
estimate_video_timeline_pricewith the same arguments and pollrender_video_timeline. Watch it end to end.get_generation_run
“为我们的预告片制作一个 4 秒的 Logo 品牌动画短片,然后添加一条显示工作室名称的下三分之一字幕。”
- Logo PNG 文件和品牌字体都在用户机器上:使用 上传两者。
request_file_upload_url - 调用 ,设置
list_base_models、filter.use_case: "image_to_video"和filter.guidance_file_types: ["first_frame", "last_frame"]。取第一个结果,再调用filter.capabilities: {fixed_duration: true}获取其时长。get_base_model - 调用 ,将深色品牌色底板作为
estimate_forge_price,将 Logo 作为first_frame,设置last_frame,并使用提示词“余烬向内飘移并融合成徽标,最后半秒有一次单次光线扫过,镜头锁定”。若价格超过 20 CUs,先询问用户。duration_seconds: 4 - 调用 ,轮询
execute_forge,并逐一查看每个输出的最后一帧,与 Logo 文件进行比对。拒绝任何改变 Logo 的结果。get_forge_run - 时间线帧率为 30 fps:Track 1 先放置一个持续 8 帧的 ,随后放置使用品牌字体的
solid条目“工作室名称”,二者通过text转场连接,设置slide、direction: "from-left"、easing: "spring"。Track 2 放置品牌动画短片视频条目。duration_in_frames: 12 - 使用该模板调用 ;然后使用相同参数调用
estimate_video_timeline_price,并轮询render_video_timeline。完整观看渲染结果。get_generation_run
Common mistakes
常见错误
- Prompting the logo's name or letters into a video model instead of pinning the logo as .
last_frame - Generating titles, lower thirds or CTA copy as video rather than setting them as text items.
- Expecting a keyframe slide or scale on one timeline item; motion is transitions or stepped items.
- A transition with only one item on the track, so there is nothing to transition from.
- Overlapping items on one track instead of stacking them on separate tracks.
- Titles cut before they can be read twice, or set outside the platform's safe area.
- A logo loop with motion big enough to break the mark's silhouette.
- 在视频模型的提示词中输入 Logo 的名称或字母,而不是将 Logo 固定为 。
last_frame - 将标题、下三分之一字幕或 CTA 文案生成为视频,而不是设置为文字条目。
- 期望单个时间线条目支持关键帧滑移或缩放;运动应使用转场或分段条目。
- 在轨道上只放置一个条目就设置转场,导致不存在转场来源。
- 在同一条轨道上让条目相互重叠,而不是将它们堆叠到不同轨道上。
- 标题在能够朗读两遍之前就被切掉,或被设置在平台安全区域之外。
- Logo 待机循环的运动幅度过大,破坏了 Logo 的自身轮廓。