360 Secure SkillHub
360 安全技能中心

bs-creatormotion-comparison-paired-swap

CreatorMotion 的成对对比动效:读取左右固定标签、成对图片与步骤说明,用 Node 脚本生成可编辑的 HyperFrames 工程,并按指定比例与分辨率渲染;自带字体、主题与示例位图,替换图片需自备。

分类:创作
yihui-dev
yihui-dev
热度 16.23
最近更新 2026-11-28 23:59:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yihui-dev/bs-creatormotion-comparison-paired-swap
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
bs-creatormotion-comparison-paired-swap
description
Fixed before-and-after labels anchor a rapid sequence of complete visual pairs. Each pair changes together in a clean editorial cut, preserving the viewer's point of comparison.

Paired Result Swap

Use this effect when the requested explanation needs the choreography below. Read references/motion-spec.md before adapting it.

Aspect ratio, resolution and caption safe area

Settle these with the user before the first build and keep them for the whole series.

  • Aspect ratio: --aspect 16:9, 9:16, 4:3 or 3:4. Each has its own native layout. With footage, read its size with ffprobe and use its ratio when it is one of the four; otherwise propose the nearest one (the footage is centre-cropped) and ask the user to confirm. Without footage, ask the user to choose.
  • Resolution: always ask, recommending 4K. --resolution 4k (default, short side 2160), 2k (1440) or 1080p (1080): a 4K 9:16 segment is 2160×3840, a 4K 4:3 segment 2880×2160.
  • Caption safe area: the bottom of the frame is kept free for the creator's subtitles (and the platform's captions and buttons on Shorts, Reels and TikTok). The effect places its text and graphics above it; do not move them into that band.

Inputs

  • leftLabel (string).
  • rightLabel (string).
  • pairs (imagePair[]).
  • stepCaption (string).

The current references/defaults.json is the complete example input schema. Each pairs entry is [leftImageKey, rightImageKey]. Both members must change at the same time beneath fixed leftLabel and rightLabel. If no image is supplied, the example renders editable document diagrams; provide real images for photographic comparisons. Keep the final stepCaption separate from the pair frames.

Create

  1. Save caller content as a JSON file.
  2. Run node scripts/create.mjs --out ./output --data ./content.json --style white-yellow --aspect 16:9 --resolution 4k. Bundled image defaults are automatic. Add --images images.json only for replacements or additional slots; relative paths resolve beside that JSON file.
  3. Inspect the editable output at entry, development, and final hold.
  4. Render using the command printed by the create script.

The additional styles are charcoal-lime and midnight-ice. Use identical content and animation when comparing the three styles. All styles share the supplied fonts.

Required choreography

  1. Reveal two equally sized result frames with fixed comparison labels.
  2. Place the first synchronized image pair into the frames.
  3. Replace both images together through two or more pairs while preserving alignment and label positions.
  4. Hold the final pair with an optional persistent step caption.

Verification

Check values against the supplied data, labels against the visible objects, and every terminal state against the brief. Keep at least 1.2 seconds for final reading. Do not clip text or replace the defining motion with a generic fade.

Film-look renovation

Rebuilt the presentation as two large widescreen inspection windows with high-contrast stamped labels and a persistent plain caption. Pair changes are synchronized short cuts, not independent fades. Each pair gets a settled reading slot and the final example holds longer.

Preserve the supplied data schema and reading holds. Render all three palettes with the same content, then inspect every motion handoff.

Three bundled raster pairs demonstrate notes becoming a clear presentation, a planning table becoming a working brief, and research becoming a workshop cover. User images replace the corresponding before/after slots directly.

Typography

Smiley Sans (Deyi Hei) sets titles, copy and labels in every language, Latin and Chinese alike. It is one slanted display weight, so hierarchy comes from size, colour and spacing rather than weight. IBM Plex Mono sets axis ticks, ordinals, counters and small labels so numbers keep a stable width. Noto Sans SC stays behind Smiley Sans for rare Chinese characters; pass --zh-font noto-sans-sc to set Chinese content in Noto Sans SC instead. A supplied --font always wins. build.json records the choice under typography.

Image material contract

Default raster slots: draft-1, draft-2, draft-3, refined-1, refined-2, refined-3. The default generator loads these automatically; user replacements override the named slots. Image values in content may retain a filename suffix, while the image-map key uses its extension-free basename.

Follow the image policy before adapting visual content. Photos, covers, document imagery and chat avatars use actual raster assets. Without user references, reuse the generated defaults in the slot map; do not ask for every image. User-specified images replace the corresponding slots first. Keep typography, vector diagrams, masks and movement editable in HyperFrames. New image subjects require the available image-generation tool (image2 when exposed), with actual provider/model provenance; no silent HTML substitute. Required presenter video and aligned alpha mattes remain separate inputs.


Part of Skillry · CreatorMotion

This skill is a free individual motion effect from CreatorMotion on Skillry.

  • Looking for the full CreatorMotion master collection (122+ motion effects, automatic scene selection, and multi-clip assembly)? Explore skillry.dev.
  • Connect Skillry MCP or browse all 87 free skills: npx --yes skillry-cli@latest mcp · github.com/yihui-dev/skillry-skills