Index of every page on this site: llms.txt
All skills
oahc09 avatar

/cocosair-skinning-morph

@ed38648
by oahc09oahc09/cocosairjs3 stars
2
Run it yourself

Bind skeletons, restore bind poses and drive morph weights. Use for realtime/baked deformation, AIR_E_SKINNING_JOINT_PATH or AIR_E_SKINNING_CAPACITY.

  • 9 files
  • 54.4 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/oahc09/cocosairjs/cocosair-skinning-morph

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestriggers.md

≈376 tokens on demand. Your agent reads this file only when SKILL.md points to it.

skinning and morph contracts triggers

For original references to the contracts below, see Contracts. Source annotations refer to the AIR checkout.

When to use what

  • "build a skeleton in code" -> buildSkeletonTree(root, jointPaths); it writes joints and bindposes in one pass (src/air/utils/skeleton-tree.ts:26-39). "reset the rig" -> restoreBindPose(root, skeleton) with the same root you passed to it (src/air/utils/restore-bind-pose.ts:30, docs/guides/skinned-model.md:29).
  • "wiggle bones by hand" -> realtime mode: keep the renderer under the root and install no enabled SkeletalAnimation there (src/cocos/3d/skinned-mesh-renderer/skinned-mesh-renderer.ts:197-202, docs/manual/skinning-code-first.md:35).
  • "play a fixed clip" -> SkeletalAnimation plus baked mode, which is also the renderer's default model type (src/cocos/3d/skinned-mesh-renderer/skinned-mesh-renderer.ts:101, src/cocos/3d/skeletal-animation/skeletal-animation.ts:150).
  • "blend shape weights" -> author struct.morph, then renderer.setWeights(weights, subMeshIndex) (src/cocos/3d/assets/mesh.ts:218, src/cocos/3d/framework/mesh-renderer.ts:695-706).
  • "why did binding throw" -> read the AIR_E_SKINNING_* code; each one names one data problem (docs/manual/skinning-code-first.md:23, joint-paths.md). "is my bindpose still valid" -> the caches and rebind rules in bind-pose.md; the asset caches by matrix signature, not by node state.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at ed38648. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
layer
subsystem
All 1 allowed tools
Read Edit Write Bash
Other metadata
compatibility
Cocos AIR source checkout or installed cocosair.js package. Browser rendering requires WebGL 2; source tooling requires Node.js >=18. Use the host-provided tools and user-authorized workspace.
when_to_use
[
  "build or bind a skeleton from joint paths",
  "a skinned mesh stays in its rest pose",
  "bone edits stop working in baked mode",
  "restore the captured bind pose",
  "morph weight changes appear to be ignored"
]
owns
[
  "skeletal-skinning",
  "joint-paths",
  "bind-pose",
  "baked-pose",
  "joint-capacity",
  "morph-weights"
]
not_for
[
  "glTF loading and decoder deployment -> cocosair-gltf",
  "clip playback and tweens -> cocosair-animation-tween",
  "generic mesh buffer authoring -> cocosair-primitives-mesh"
]
metadata
{
  "author": "oahc09@gmail.com",
  "version": "1.0.0",
  "last-updated": "2026-10-13",
  "description_zh": "配置骨骼路径、蒙皮、绑定姿态、Morph 权重和烘焙动画。用于骨骼变形、绑定姿态恢复或 Morph 问题。"
}

README badge

README badge for oahc09/cocosairjs/cocosair-skinning-morph