Skip to main content

API Overview

Every TakeForge action is also a function on UTakeForgeLibrary, callable three ways:

RouteForPage
PythonWhole-folder pipelines, CI steps, quick console one-linersPython
BlueprintEditor Utility Widgets / Blutilities - custom in-editor tooling with UIBlueprint
C++Editor modules and plugins that build on TakeForgeC++

The functions​

FunctionDoesMenu equivalent
ApplyRootMotion(seq, mode)Pelvis travel → root bone (exact / smoothed), or removed (in place)Root Motion outputs
MakeLoopable(seq)Blends the end into the start poseMake Loopable
AlignTravelDirection(seq)Rotates the take onto the forward axisAlign Travel Direction
Mirror(seq)Baked left↔right mirrored versionMirror
RezeroToOrigin(seq, zero_z, zero_yaw)Take starts at (0,0,0)Start at Origin
TrimToRange(seq, start, end)Keeps only frames [start, end]Trim to Range
RetimeToSpeed(seq, cm_s)Rate Scale for an exact travel speedRetime to Speed
AdjustMotion(seq, speed, amplitude)Playback-speed and sway-amplitude tuningAdjust Motion
IsolateBones(seq, bones, hold_first)Keeps animation only on the given branchesIsolate Bones (keep)
StripBones(seq, bones, hold_first)Cleans animation from the given branchesIsolate Bones (remove)
GraftBones(target, source, bones, s0, s1, t0, t1, blend)Splices source's branches onto the targetGraft Bones
StitchTakes(target, second, blend)Appends second after target with a crossfadeStitch Takes
SmoothBones(seq, bones, ranges, radius, blend)Windowed Gaussian smoothing of branchesSmooth Bones
AddMotionMatchingCurves(seq, warping, constant, value, contact)Writes enable_warping, movedata_speed, phase, and optionally the contact curvesAdd Motion Matching Curves
GetAverageSpeed(seq)Average travel speed in cm/s (read-only)Check Take (part of)

Shared semantics​

Whatever the language, the same rules apply:

  • Direct modification. Functions modify the given asset - there is no implicit duplication. Duplicate first for the menu actions' non-destructive behavior (recipes on the Python page show how).
  • Settings at call time. Pelvis bone, smoothing strength, markers, curves, forward axis - read from Editor Preferences → Plugins → TakeForge when the function runs. There are no per-call overrides for these.
  • Undoable. Each mutating call opens an editor transaction, so Ctrl+Z works after scripted edits just like after menu actions.
  • Editor-only. The library lives in an editor module: available in the editor (including commandlets), never in packaged games.
  • Errors, not exceptions. Mutating functions return bool success plus an error string describing why a take was rejected (no keys, no measurable travel, unknown bones, …).