Logo Scenario Godot Animation

Scenario Godot Animation

Tổ chức
scenario-labs
scenario-godot-animation

Use when animating characters or scenes in Godot 4.7: AnimationPlayer clips and RESET, AnimationTree state machines and blend spaces built in code, Mixamo or glTF import, loop settings, BoneMap retargeting and shared animation libraries, root motion, foot sliding, foot IK with TwoBoneIK3D or custom SkeletonModifier3D, tweens, SpringArm3D cameras, cutscenes; or when a character T-poses, slides, floats, freezes mid-blend or a transition never fires.

Tổng quan

Nhà phát hànhscenario-labs
Kho mãskills
Tên kỹ năngscenario-godot-animation
Sao
970
Bản fork
114
Tệp đi kèm
20
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 20 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được scenario-labs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Scenario Godot Animation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/scenario-labs/skills/tree/main/skills/game-engines/godot/scenario-godot-animation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scenario-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/game-engines/godot/scenario-godot-animation .claude/skills/scenario-godot-animation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Scenario Godot Animation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Scenario Godot Animation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Scenario Godot Animation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Godot animation (animator and technical animator)

Target: Godot 4.7.2.stable, macOS, Forward+ with Jolt Physics. Every procedure in references/procedures.md was run live in 4.7.2 on 2026-10-02 against a procedurally built humanoid, so nothing needs a download.

Stance

  • Measure motion, do not eyeball it. A walk has one correct ground speed: the speed at which the planted foot stops sliding. Measure it from the clip (anim_motion.gd:foot_speed) and use that number for BlendSpace points and the controller. On a retargeted body the speed scales with Skeleton3D.motion_scale (a 1.15x body walked 1.38 m/s on a 1.2 m/s clip).
  • Code decides, the animation layer presents. Gameplay owns velocity and state; the AnimationTree only reads them through advance expressions or parameters. The controller must still work with the tree removed (Fair Fight, jzuvd0Lstuw 00:05:46).
  • Look at exact times. Seek or step to fixed times and open a contact sheet (gd_anim.pose_sheet). Real-time captures land on random frames.
  • A layer must say which bones it owns. Partial clips do not stay partial: glTF export pads every clip with every animated joint, and an unfiltered OneShot under the default deterministic blending snaps every unlisted bone to RESET. Filters, not missing tracks, define layers.
  • Choose the driver per motion. Velocity-driven locomotion with in-place clips keeps control responsive; root motion suits one-shot moves (dodge, climb, vault) where the feet must stay planted [added]. A tree suits a normal locomotion set; very large move sets or many procedural layers favor code plus SkeletonModifier3D layers (the experts disagree: Fair Fight against trees, xpoPfUKI9tw; RiftOfNostaria, Bitlytic and Chris for them). Tweens for runtime values with unknown starts, AnimationPlayer for authored multi-property curves (Queble, KUyQzjpRsU8 00:01:48).
  • Silent failures are the norm here. A BoneMap naming bones that do not exist, an expression transition at advance mode Enabled, a missing RESET key: each produced no error in 4.7.2. Audit after every import and every tree change. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

Establish first

Ask once, then run:

  1. Source of motion: Mixamo or other FBX, Blender glTF, mocap, hand-keyed in Godot, procedural only.
  2. Rig: humanoid (SkeletonProfileHumanoid fits) or custom; T-pose or A-pose rest; real Root bone or not.
  3. Locomotion model: velocity-driven (in-place clips) or root motion; target speeds if the design fixes them.
  4. Layers needed: upper-body actions, aim or look-at, foot IK on uneven ground, hit reactions.
  5. Characters sharing clips, and their height range.
  6. Cutscenes: length, camera count, whether gameplay must be frozen, dialogue system in use.
  7. Physics tick, renderer and target hardware (for IK and modifier cost).

Workflow with gates

  1. Kit and project. gd_anim.install_animkit(P); confirm project.godot has Jolt for 3D and the brief's renderer. Gate: the kit's jobs return ok.

  2. Import. Name cycles with a loop hint (Walk-loop), import once, then set options in the .import file (gd_anim.set_import_options, P3) and run --import. Turn on animation/import_rest_as_RESET. Gate: gd_anim.audit has no flags; every cycle loops; RESET exists.

  3. Retarget. Build the BoneMap from the imported bone names (anim_import.gd:make_bonemap, P4); : becomes _ on import. Gate: skeleton is %GeneralSkeleton, bones renamed, sampled poses within 2 mm of the source.

  4. Share. Import clips As Animation Library, give each body its own BoneMap, attach with anim_setup.gd:share_library (P5). Gate: 0 unresolved tracks, identical track layout.

  5. Speeds. foot_speed per cycle and per body (P9). Gate: controller and BlendSpace speeds within 2 percent.

  6. Tree. Build in code (anim_tree.gd, P6): BlendTree root, StateMachine inside, BlendSpace1D with sync, OneShot with a filter, TimeScale. Gate: drive with scripted input gives the expected state list and times; tree audit clean. The transition helper that passed the drive test:

    gdscript
    static func transition(expr: String, at_end: bool, xfade: float) -> AnimationNodeStateMachineTransition:
        var t := AnimationNodeStateMachineTransition.new()
        t.xfade_time = xfade
        t.advance_mode = AnimationNodeStateMachineTransition.ADVANCE_MODE_AUTO   # default Enabled never auto-fires
        if at_end:
            t.switch_mode = AnimationNodeStateMachineTransition.SWITCH_MODE_AT_END
        if expr != "":
            t.advance_expression = expr        # read on tree.advance_expression_base_node
        return t
    # sm.add_transition(&"Ground", &"Fall", transition("not on_floor and not jump_pressed", false, 0.2))

    Drive it from gameplay with tree.set("parameters/sm/Ground/blend_position", speed) and the state node's properties; fire actions with tree.set("parameters/act/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE).

  7. Layers and IK. OneShot filters (P7), FootPlacer plus TwoBoneIK3D (P10). Gate: foot within 2 cm of the target on a step, a hole and a 15 deg slope, read in skeleton_updated. Modifiers run in child order, so the placer (targets and hips) goes before the solver:

    gdscript
    var ik := TwoBoneIK3D.new()
    skeleton.add_child(ik)                       # after FootPlacer
    ik.setting_count = 2
    for i in 2:
        var side: String = ["Left", "Right"][i]   # := cannot infer from an array index
        ik.set_root_bone_name(i, side + "UpperLeg")
        ik.set_middle_bone_name(i, side + "LowerLeg")
        ik.set_end_bone_name(i, side + "Foot")
        ik.set_target_node(i, ik.get_path_to(targets[i]))
        ik.set_pole_node(i, ik.get_path_to(knee_poles[i]))      # 0.6 m in front of the knee
        ik.set_pole_direction(i, SkeletonModifier3D.SECONDARY_DIRECTION_PLUS_Z)
    skeleton.skeleton_updated.connect(_check_feet)   # final pose, after every modifier and influence

    Lower influence while running and set it to 0 in the air, so authored motion shows through (Lukky, MbaPDWfbNLo 00:09:30).

  8. Camera and cutscene. SpringArm3D with a sphere shape (P12); one AnimationPlayer timeline (P13). Gate: call order and times, camera at checkpoints, animation_finished, section playback.

  9. Look. Pose sheets: T-pose front and side, 8 walk phases, each state, IK terrain, cutscene timeline (P14). Gate: every sheet opened and described.

Expert checklist (state these in the plan)

  • Modifier output is rolled back every frame (Fair Fight XFZQNsFejwk 00:02:04; P10 reads the animated pose a frame later). Fine for post effects; when modifiers own the pose, put pose_persist.gd with role RESTORE first and SNAPSHOT last: an incremental 5 deg modifier then reached 60 deg in 12 frames instead of staying at 5 (P16). RESTORE overrides the animation, so never use it on top of a playing clip.
  • IK solves position only. TwoBoneIK3D left the foot 12.1 deg off a 15 deg slope; a CopyTransformModifier3D after it (rotation only, reference type Node, an align node with the ground tilt) brought it to 0.0 deg without moving the foot (P16; Lukky MbaPDWfbNLo 00:07:49).
  • Deterministic IK solves from scratch each frame; a one-iteration chain needs the angle limit at the full 180 deg (Lukky 00:04:46). deterministic defaults to false on IterateIK3D; turn it on for stepping legs (MeroDev 17xi4vDqQJk 00:02:28).
  • Bezier and property tracks cannot blend (docs): the tree blends value, position, rotation and scale tracks.
  • Call Method tracks do not run in the editor preview (docs): test them in a run (P13).
  • Capture update mode blends from the current value to the first key: a property at 5 with a key 10 at 0.5 s read 7.5 at 0.25 s under play_with_capture (P16).
  • Cache find_track in a path-to-index map when scripts sample many tracks: Fair Fight measured 1.5 to 3x on large rigs (XFZQNsFejwk 00:04:03 to 00:06:45); on the 22-track test rig in GDScript, 1.2x (P16). It needs one track layout across clips, so turn off animation/remove_immutable_tracks.
  • Gate one-shots on animation_finished plus a flag, or the next frame's locomotion call replaces the hit clip (DevWorm GMyw3eHDw7s 00:22:58). Measured: "hurt" held for its 0.4 s, then walk resumed (P16).
  • Blender source. Rigify Limb Segments 1 and Game Friendly single root before export (CoderNunk 0wMONEpEXpQ 00:00:19, 00:01:23). nodes/apply_root_scale (default true) bakes import scale into meshes and clips, root stays at 1 (docs).
  • BlendSpace2D for 4-way sprites: points at plus or minus 1, axis range plus or minus 1.1 so diagonals snap to left and right; 2D up is negative Y (Chris WrMORzl3g1U 00:09:20, 00:13:09).

Numbers

WhatValueSource
Human walk, run ground speedabout 1.2 to 1.5 m/s walk, 3 to 4 m/s jog [added]measure the clip instead (P9)
No-slide speed measuredwalk 1.200, run 3.504 m/s on clips built for 1.2 and 3.5P9
Foot-slide toleranceplanted foot under 0.1 m/s; speeds within 2 percent [added]baseline G5, P9
Locomotion crossfade0.1 to 0.2 s; landing 0.05 s; Land to Ground at end with 0.15 sP6
Import FPS30 (default animation/fps)importer
motion_scale after Normalize Position Trackssource hip height (0.97 m test rig)P4
IK foot errorunder 2 cm required, under 0.1 mm measuredP10
FootPlacer ray0.5 m above to 1.0 m below the animated foot; hips drop clamp 0.35 mP10
Spring armsphere r 0.2 stops 0.2 m plus margin 0.01 m short of a wallP12
IterateIK3D defaultsmax_iterations 4, min_distance 0.001, angular_delta_limit 2 deg, deterministic falseclass reference
Tween stagger0.05 s per item, 0.2 s per tweenP11; aagPe4dvM2M 00:04:04
Modifier costFair Fight halved a 2 ms overlay with incremental global transformsXFZQNsFejwk 00:14:07

Quality gates

Score with references/critique.md; record each live check as "run in Godot 4.7.2 on : pass, key numbers" and mark anything not run "not yet run" with the reason. Blocking: every track resolves; cycles loop and RESET covers every animated path; speeds match the measured no-slide speeds; the tree passes a scripted drive; a pose sheet was opened. Also: no overwrite_axis or other keys missing from 4.7.2 in .import edits; no SkeletonIK3D in new code; IK results read in skeleton_updated or modification_processed, never from _process.

Common mistakes

  • BoneMap with mixamorig: names. Godot imports mixamorig_Hips; the map matches nothing, the skeleton is still renamed GeneralSkeleton, every library track fails to resolve, and nothing is printed. Build the map from imported names; the audit flags a GeneralSkeleton with no Hips.

  • Expression transitions left at advance mode Enabled. They never fire. Set ADVANCE_MODE_AUTO (2) on every transition driven by an expression or condition.

  • Two auto transitions true in one frame. A jump that clears on_floor went Ground to Fall, skipping JumpUp. Guard the expression (not on_floor and not jump_pressed) or give the jump transition priority 0.

  • Unfiltered OneShot or Add with a partial clip. Deterministic (the AnimationTree default): unlisted bones go to RESET, the character T-poses. Non-deterministic: they freeze. Filter the node.

  • No RESET. Imported files have none by default; blends and saved scenes then start from rest or zero. animation/import_rest_as_RESET, or author RESET upstream (Blargis, ghYilg9cq-I 00:02:39).

  • Reading IK results in _process. You get the animated pose. Read in Skeleton3D.skeleton_updated (final, after influence) or in the modifier's modification_processed (100 percent, before influence).

  • Root motion on Hips. It wobbles; insert a real Root (FinePointCGI, fq0hR2tIsRk 00:04:35). Velocity is basis * get_root_motion_position() / delta.

  • Speed constants on retargeted bodies. A taller body has a longer stride through motion_scale; re-measure per body.

  • Tweens without a kill guard. Two tweens on one property both write every frame (Queble, KUyQzjpRsU8 00:02:54). Keep a reference and kill() it.

  • Method tracks in a headless or skipped cutscene. Default Deferred calls wait for a frame; a loop that never yields fires them all at the end. Use Immediate, or yield frames.

  • Editing tree nodes at runtime. They are shared by every instance of the scene; per-character values belong in parameters/....

  • Ray-only spring arm. The camera lands on the wall plane; give the arm a sphere shape.

  • Cameras keyed without a look target. A cutscene camera whose rotation keys drift lost the hero for the last 5 s; check framing on the timeline sheet, not on the first and last key.

  • Library loaded on a body with its own clips. Skip Import on the second character's AnimationPlayer so only the shared library plays (Quilled, nb6uSeEZFCI 00:04:36).

Handoffs

  • scenario-godot-expert: run protocol, gd_run, capture and review tools. Read it first.
  • scenario-godot-gameplay: the CharacterBody3D controller and the state the tree reads; hitboxes from method tracks.
  • scenario-godot-3d-world: collision layers for FootPlacer and spring arm; IK test geometry.
  • scenario-godot-pipeline-automation: batch import and .import edits at scale, CI runs.
  • scenario-godot-ui, scenario-godot-vfx, scenario-godot-audio: menu motion beyond tweens; effects and sounds keyed from clips and cutscenes.
  • scenario-godot-performance-export: modifier and tree cost on target hardware.
  • blender- skills:* Root bone, Rigify Game Friendly export, NLA push-down, loop hints at the source.

Godot 4.7 notes

  • IK family since 4.6 on SkeletonModifier3D: TwoBoneIK3D, FABRIK3D, CCDIK3D, JacobianIK3D, SplineIK3D; settings are per index (set_root_bone_name(i, ...), set_target_node(i, path), set_pole_node, set_pole_direction). SkeletonIK3D is deprecated.
  • Custom modifiers override _process_modification_with_delta(delta); _process_modification() is deprecated. Do not apply influence yourself.
  • retarget/rest_fixer/retarget_method (0 None, 1 Overwrite Axis default, 2 Use Retarget Modifier) replaces any overwrite_axis key; RetargetModifier3D exists for runtime retargeting (not run here).
  • tween_await(signal).set_timeout(s) is new in 4.7; tween_subtween since 4.4.
  • Animation markers and play_section_with_markers (4.3+); Animation.length is a double in 4.7; animation names are StringName.
  • AnimationMixer is the base of AnimationPlayer and AnimationTree: root_motion_track, deterministic (false on the player, true on the tree), callback_mode_process, callback_mode_method.
  • Observed in 4.7.2 (P6): priority (lower wins) also decides between auto transitions that are true in the same frame, not only travel() paths; travel() called before the first advance() starts the machine in that state without error; a transition's default advance_mode is Enabled (travel only).
  • Observed (P10): modification_processed reports the modifier's result before influence; skeleton_updated gives the blended final pose; outside both, bone poses read as animated.
  • Observed (P3): a hand-edited .import is applied by a plain --import; loop-hint suffixes are stripped from clip names, a loop prefix is kept; . in clip names becomes _.
  • Skeleton3D refuses : and / in bone names; its error string for that is malformed in 4.7.2 (logged in tests/OPEN_ISSUES.md).

References

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Scenario Godot Animation làm được gì?

Use when animating characters or scenes in Godot 4.7: AnimationPlayer clips and RESET, AnimationTree state machines and blend spaces built in code, Mixamo or glTF import, loop settings, BoneMap retargeting and shared animation libraries, root motion, foot sliding, foot IK with TwoBoneIK3D or custom SkeletonModifier3D, tweens, SpringArm3D cameras, cutscenes; or when a character T-poses, slides, floats, freezes mid-blend or a transition never fires.

Vì sao nên dùng Scenario Godot Animation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Scenario Godot Animation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Scenario Godot Animation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scenario-labs/skills/tree/main/skills/game-engines/godot/scenario-godot-animation. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Scenario Godot Animation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Scenario Godot Animation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Scenario Godot Animation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Scenario Godot Animation có miễn phí không?

Có. Kỹ năng này được scenario-labs phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇