动效与动画75k · #2646
character-rigging
它能做什么
这项技能为 2D 角色做好动画准备。适合希望把角色拆分为可以摆姿势、可以移动的部件的动画师。
适用场景
- ✓当你准备让某个 2D 角色在场景中做动画时。
- ✓当角色需要为头部、手臂和嘴巴等部分设置独立部件时。
- ✓当你需要添加运动限制,使关节不会以不可能的方式弯曲时。
技能链接
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/character-rigging/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/character-rigging/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add calesthio/OpenMontage --skill character-rigging
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/calesthio/OpenMontage/main/.agents/skills/character-rigging/SKILL.md -o SKILL.md
可以这样问 AI
“请把我的老鼠角色拆分为头部、手臂和身体等部分,为动画做好准备。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在数据文件中描述每个部件、它的旋转中心、图层顺序以及运动范围限制。随后动画代码读取该文件,因此角色是数据,而不是定制代码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Character Rigging
Use this skill when building OpenMontage rig_plan artifacts or renderer input
for local 2D character animation.
Proven Patterns
- Keep runtime code generic; make each character a data package.
- Split characters into independently transformable parts.
- Define pivots in the same coordinate space as the artwork.
- Store constraints on moving parts to prevent impossible rotations.
- Keep layer order explicit; do not rely on SVG source order after generation.
- Start with one view and add views only when the shot list requires them.
Rig Package
{
"character_id": "mouse",
"rig_type": "svg_rig",
"parts": [
{ "id": "body", "kind": "torso", "layer": 10 },
{ "id": "head", "kind": "head", "layer": 30, "parent": "body" },
{ "id": "arm_right", "kind": "limb", "layer": 40, "parent": "body" }
],
"joints": {
"head": { "pivot": [320, 180], "rotation": [-20, 20] },
"arm_right": { "pivot": [390, 310], "rotation": [-70, 95] }
}
}
Quality Checklist
- Every moving part has a pivot.
- Every child part has a parent where hierarchy matters.
- Mouth shapes are separate assets or separate path groups.
- Eyes and pupils are separate when gaze needs to change.
- Props are separate if the character touches or carries them.
Sources
- SVG transform-origin behavior is browser-defined and can be sensitive to
coordinate space; prefer explicit SVG-coordinate pivots when using GSAP
svgOrigin: https://gsap.com/docs/v3/GSAP/CorePlugins/CSS/ - Remotion animations must be frame-driven and deterministic via current frame: https://www.remotion.dev/docs/use-current-frame
常见问题
为什么要把部件拆开?
独立的部件可以各自运动,因此头部可以转动,而身体保持不动。
我需要每个角度的视图吗?
不需要。先从一个视图开始,只有分镜列表需要时再添加更多视图。
什么是旋转中心?
旋转中心是部件转动所围绕的点,例如手臂的肩部。
详情
作者的原始描述
Build data-driven 2D character rigs for local animation: parts, pivots, layers, constraints, views, and reusable rig packages.
repo: calesthio/OpenMontage
热度
- GitHub 星标
- 75k
- 排名
- #2646
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/28
评论
- …