Items, clothing and animations

Animations

The animation editor on the GTA character skeleton, keyframes on a timeline, saving to .ycd and playing it on Player 1 or an NPC.

You open the animation editor on the left bar: Animations. The middle shows the game’s character in 3D. You pose its bones at moments of the animation, and the studio saves the result as a .ycd file the game plays.

Name and file

A GTA animation is a Dictionary and a Clip. The dictionary is the name of the .ycd file.

  • Open… loads an animation saved earlier in the project.
  • New clears the editor.
  • Save .ycd saves the file in resources/[my]/studio_anims/stream/. It is an ordinary resource that also works without the studio.

Posing the character

You pick the mode above the character:

  • Drag (IK): you drag the green hand, foot or head, and the rest of the arm or leg follows. Full body (moves the torso too) lets the torso move as well.
  • Rotate bone: you click a bone and turn it with the rings.
  • Move character: the arrow keys move the whole character, e.g. for a crouch, a jump or a step.

Show bones draws the skeleton on the character. Camera: the right button rotates, the middle one pans, the wheel zooms.

The timeline

  • Length of the animation in seconds and Loop.
  • Record keeps what you drag while time runs.
  • Play, Pause and Stop play the animation in the editor.
  • Delete key removes the picked bone’s keyframe at the current moment, Clear removes all keyframes (it asks first).

In the game

  • Play on Player 1 saves the animation and plays it on Player 1’s character. The game loads a new file only after the player joins again, so the studio reconnects them by itself and waits until the game has the dictionary. It needs a running server and Player 1.
  • Can walk plays the animation on the upper body only, and you keep moving with the legs.
  • Stop next to it ends the animation on Player 1.
  • NPC from the scene… and Give to NPC save the animation and set it in the chosen NPC’s behaviour. Every player sees it, also without the studio.

Claude

Claude makes animations over MCP: anim_bones (the skeleton’s bones), anim_list, anim_get, anim_set_keys (keyframes), anim_ik (moves a hand, foot or the head, like dragging in the editor), anim_export (saves to .ycd and plays it on a player), anim_stop.

A question this page does not answer? Ask it on Discord.

Webexe Studio

Click to see it at 100%.