JimLiu/baocut / skills/baocut/built-in-skills/character-animation
character-animation
Verified做角色演出来的动画片时用:每镜一个插画场景,角色走路、指向、拿东西、做反应,文字写在场景里的牌子和黑板上,科普、故事、历史、品牌小剧场都行。把生成的图抠成可动的部件,用代码绑定骨骼按旁白的字演出来。不用于:贴在实拍上的动效图形,图解为主没有角色的讲解片,只要一张插图。
| File | Kind | Size |
|---|---|---|
| .baocut-meta.json | config | 2.8 KB |
| SKILL.md | skill md | 5.1 KB |
| examples/mini-film/art.example.json | config | 918 B |
| examples/mini-film/index.html | other | 628 B |
| examples/mini-film/scene.js | script | 2.1 KB |
| references/art.md | markdown | 4.4 KB |
| references/checks.md | markdown | 2.4 KB |
| references/rig.md | markdown | 5.1 KB |
| references/style-and-story.md | markdown | 4.8 KB |
| references/timing-and-sound.md | markdown | 2.9 KB |
| rig-kit/rig-kit.js | script | 33.0 KB |
| scripts/cutout.mjs | script | 26.9 KB |
| scripts/jump-scan.mjs | script | 3.2 KB |
| scripts/place-sfx.mjs | script | 5.1 KB |
| scripts/rig-check.mjs | script | 8.9 KB |
examples/mini-film/scene.js
View on GitHub// Two shots and a wipe, showing how the pieces fit together. It is a starting point for the mechanics, not a look:
// change the style, the places, the cast and the story for every film.
// Art names come from art.example.json; words.js is the transcribed narration.
const R = window.RigKit;
R.style({ font: '800 %px Title', ink: '#2b2d42', accent: '#d62828', tag: '#f4a261' });
R.assets(window.RIG);
R.voice(window.WORDS);
R.film({
end: 9,
build() {
// ----- 1. A guide points at a sign; the wrong idea gets crossed out. -----
const b = R.board('hall');
const tSign = R.cue('built by'), tNo = R.cue('not quite');
const sign = R.typed(b, 'BUILT BY\nFARMS', tSign, { size: 92 });
const no = R.cross(b, tNo);
const date = R.tag('1909', R.cue('in 1909', { word: 1 }));
R.E('pop', tSign);
R.shot('sign', 0, (t0, t1) => t => {
R.camera(t, t0, t1, { x0: 860, x1: 980 });
R.plate('hall');
sign(t);
no(t);
R.actor('guide', t, {
x: 1440, y: 1030, h: 680, seed: 3, sq: R.squash(t - tNo, 0.06),
l: { aim: [b.x + b.w / 2, b.y + b.h / 2 - 30 * Math.sin(t * 3)], pose: 'point' },
// A new gesture eases in on its word; undefined is the relaxed arm.
r: R.swing(t, tNo, undefined, { at: [-0.3, 0.85], pose: 'open' }),
});
date(t);
});
R.wipe(R.cue('so who'));
// ----- 2. Someone walks in and the guide reacts. -----
const tWho = R.cue('so who'), tJump = R.cue('she did');
R.shot('walk', tWho, (t0, t1) => t => {
R.camera(t, t0, t1, { z0: 1.06, z1: 1.03 });
R.plate('hall');
const walked = (t - t0) * 220, h = 620;
R.walker('visitor', t, { x: 260 + walked, y: 1040, h, phase: R.walkPhase('visitor', h, walked), seed: 9 });
R.actor('guide', t, {
x: 1500, y: 1030, h: 680, seed: 3, lift: R.hop(t, tJump, 0.42, 80),
// The target moves with the walker, and this arm is on the side facing it.
l: { aim: [260 + walked, 640], pose: 'point' },
r: { at: [-0.7, 0.9], pose: 'fist', hold: { name: 'flask', h: 170, up: 0.46 } },
});
R.pop('!', 1560, 300, t, tJump);
});
},
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |