Skip to content

AntiAnti/FreeAnimHelpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FreeAnimHelpers

Unreal Engine 5 plugin with some animation helpers.

Currenty, it contains three useful animation helpers.

Usage

Copy FreeAnimHelpers folder to [your project]/Plugins or Engine/Plugins and enable it in Project Settings -> Plugins window.

SnapFootToGround (Animation Modifier)

Modifier to snap character feet to ground. I use it for turn-in-place animation like this.

  1. Open Skeletal Mesh used in animation you need to modify.

  2. For both legs, add tip sockets:

  • attached to foot bone;
  • located at ball and at the ground, orientation doesn't matter.

Tip socket placement

  1. Open animation sequence asset in Animation Editor, then Animation Data Modifiers window (via Windows menu) and add SnapFootToGround modifier.

  2. Set Snap Foot Orientation checkbox, if you want to make feet horizontal.

  3. Fill names of feet bones and tip sockets, then right click and select Apply Modifier.

  4. Save animation sequence.

Prepare TurnInPlace Asset (Animation Modifier)

For my personal specific puropses. You don't need it.

Reset Bones Translation (Animation Modifier)

For all bones with "Translation Retargeting Option" = "Skeleton" in the skeleton hierarchy, this modifier changes local translation in animation sequence to skeleton-default. In other words, after thes modifier you can reset "Translation Retargeting Option" for all bones back to "Animation". Useful if you want to export to FBX animation sequence retargeted from another skeleton.

Usage: add modifier to animation sequence, select desired skeletal mesh (to get local translations of bones) and apply it.

Animate IK Bones (Animation Modifier)

Copy component-space transforms of skeleton bones (usually wrists and feet) to MetaHuman/Mannequin IK bones (ik_foot_r etc).

Reset Scale of Root Bone (Animation Modifier)

Small function to reset scale of root bone in skeletal mesh and preserve size of the model. See this video.

Distance Curve Modifier Ex (Animation Modifier)

Despite the name, currently useful only to add root motion to animation. Root movement should be saved in curves "RootMotion_X", "RootMotion_Y" and, optionally, "RootMotion_Z".

Required settings in the modifier:

  • Root Motion to Curves: unchecked/false
  • Root Motion to Root Bone: checked/true
  • Root Motion from Curves: checked/true

See video.

Fingers Curl (Animation Modifier)

Add some local rotation to fingers.

Torso Offset (Animation Modifier)

Leg IK modifier. Add some vertical offset of pelvis bone, but preserve feet locations.

To Do

  • remove root motion;
  • insert T-pose/reference pose in the first frame of animation sequence;
  • animate twist bones;