Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
usd_animation_io.h File Reference
#include <momentum/character/marker.h>
#include <momentum/character/skeleton.h>
#include <momentum/character/skeleton_state.h>
#include <momentum/character/types.h>
#include <momentum/math/types.h>
#include <pxr/usd/usd/prim.h>
#include <pxr/usd/usd/stage.h>
#include <pxr/usd/usdSkel/skeleton.h>
#include <span>
#include <string>
#include <tuple>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

void momentum::saveSkeletonStatesToUsd (const UsdStageRefPtr &stage, UsdSkelSkeleton &skelPrim, const Skeleton &skeleton, std::span< const SkeletonState > skeletonStates, float fps)
 Save skeleton states as a UsdSkelAnimation on the stage.
std::tuple< std::vector< SkeletonState >, std::vector< float > > momentum::loadSkeletonStatesFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load skeleton states from a USD stage.
void momentum::saveMotionToUsd (const UsdPrim &prim, float fps, const MotionParameters &motion, const IdentityParameters &offsets)
 Save model-parameter motion as custom attributes on a USD prim.
std::tuple< MotionParameters, IdentityParameters, float > momentum::loadMotionFromUsd (const UsdPrim &prim)
 Load model-parameter motion from custom attributes on a USD prim.
void momentum::saveMarkerSequenceToUsd (const UsdStageRefPtr &stage, const SdfPath &skelRootPath, float fps, std::span< const std::vector< Marker > > markerSequence)
 Save marker sequence as animated Xform prims under a Markers scope.
MarkerSequence momentum::loadMarkerSequenceFromUsd (const UsdStageRefPtr &stage)
 Load marker sequence from animated Xform prims.