skeleton2d
13 public commands in this category.
add_bone2d
Add a bone to a 2D skeleton
Scope:
scene:write. Token cost: 10.- entityId string (required)
- Skeleton entity ID
- name string (required)
- Bone name
- length number (optional)
- Bone length
- parentBone string (optional)
- Parent bone name (null for root)
- position array (optional)
- Local position [x, y]
- rotation number (optional)
- Local rotation in degrees
add_keyframe2d
Add a keyframe to a bone track in a skeletal animation
Scope:
scene:write. Token cost: 10.- animName string (required)
- Animation name
- boneName string (required)
- Bone name
- entityId string (required)
- Skeleton entity ID
- time number (required)
- Keyframe time in seconds
- easing string (optional)
- Easing function
- position array (optional)
- Position value
- rotation number (optional)
- Rotation value in degrees
add_skeleton2d_mesh_attachment
Add a mesh attachment with vertex weights to a skeleton skin for vertex skinning
Scope:
scene:write. Token cost: 30.- attachmentName string (required)
- Name for the new attachment
- entityId string (required)
- Target skeleton entity
- skinName string (required)
- Name of the skin to add attachment to
- triangles array (required)
- Triangle index array
- uvs array (required)
- Array of [u, v] texture coordinates
- vertices array (required)
- Array of [x, y] vertex positions
- weights array (required)
- Array of { bones: string[], weights: number[] } per vertex
auto_weight_skeleton2d
Automatically generate vertex weights for a skeleton mesh (engine-chosen algorithm)
Scope:
scene:write. Token cost: 20.- entityId string (required)
- Skeleton entity ID
create_ik_chain2d
Create an IK constraint on a 2D skeleton
Scope:
scene:write. Token cost: 15.- bones array (required)
- Bone chain, root-first: 2 to 64 bone names. Omit to derive the chain from startBone/endBone
- entityId string (required)
- Skeleton entity ID
- name string (required)
- IK constraint name (accepted as chainName)
- targetEntityId string (required)
- Target entity ID (UUID string; empty means no target yet)
- bendDirection number (optional)
- Bend direction (+1 or -1)
- endBone string (optional)
- Chain tip, when bones is omitted; its parents are walked up to startBone
- mix number (optional)
- IK/FK blend (0-1)
- startBone string (optional)
- Chain root, when bones is omitted
create_skeletal_animation2d
Create a skeletal animation with keyframe tracks
Scope:
scene:write. Token cost: 20.- duration number (required)
- Animation duration in seconds
- entityId string (required)
- Skeleton entity ID
- name string (required)
- Animation name
- looping boolean (optional)
- Whether animation loops
- tracks object (optional)
- Bone name -> keyframes mapping
create_skeleton2d
Create a skeleton on a 2D sprite entity
Scope:
scene:write. Token cost: 15.- entityId string (required)
- Entity ID to add skeleton to
get_skeleton2d
Query skeleton data for an entity
Scope:
scene:read. Token cost: 0.- entityId string (required)
- Skeleton entity ID
import_skeleton_json
Import skeleton data from SpawnForge's own skeleton JSON
Scope:
scene:write. Token cost: 25.- entityId string (required)
- Entity to attach skeleton to
- jsonData string (required)
- Skeleton JSON: an object with a non-empty `bones` array, each bone carrying a unique `name`
- format string (optional)
- Source format. Only 'custom' (SpawnForge's own skeleton JSON) is supported; dragonbones and spine need converting first
play_skeletal_animation2d
Play a skeletal animation on an entity
Scope:
scene:write. Token cost: 5.- animName string (required)
- Animation to play
- entityId string (required)
- Skeleton entity ID
- crossfade number (optional)
- Crossfade duration in seconds
- loop boolean (optional)
- Loop the animation
- speed number (optional)
- Playback speed multiplier
remove_bone2d
Remove a bone from a 2D skeleton
Scope:
scene:write. Token cost: 10.- boneName string (required)
- Bone to remove
- entityId string (required)
- Skeleton entity ID
set_skeleton2d_skin
Change the active skin of a skeleton
Scope:
scene:write. Token cost: 5.- entityId string (required)
- Skeleton entity ID
- skinName string (required)
- Skin to activate
update_bone2d
Update properties of a bone in a 2D skeleton
Scope:
scene:write. Token cost: 10.- boneName string (required)
- Bone to update
- entityId string (required)
- Skeleton entity ID
- length number (optional)
- New bone length
- position array (optional)
- New local position
- rotation number (optional)
- New local rotation in degrees
- scale array (optional)
- New local scale