Skip to main content

Module json

Module json 

Source
Expand description

Parsers and data models for Cubism JSON sidecar files. Parsers and typed representations for Cubism JSON files.

This module covers the sidecar files referenced by a .model3.json model: motions, expressions, physics, pose data, and display metadata. The high-level loaders in crate::assets use these parsers automatically, but custom asset pipelines can call them directly.

Structs§

Cdi3
CdiEntry
CdiPart
EffectiveForces
Expression3
Parsed Cubism exp3.json expression data.
ExpressionParameter
One parameter operation in an expression.
ExpressionReference
Reference to an expression file from model3.json.
Group
A named group of parameter or part ids.
HitArea
A named hit area declared by the model.
Model3
Parsed Cubism model3.json data.
Motion3
Parsed Cubism motion3.json data.
MotionCurve
One animated target curve in a motion file.
MotionMeta
Metadata from a Cubism motion file.
MotionPoint
A point on a motion curve.
MotionReference
Reference to a motion file from model3.json.
Physics3
PhysicsDictionaryEntry
PhysicsInput
PhysicsMeta
PhysicsNormalization
PhysicsNormalizationValue
PhysicsOutput
PhysicsSetting
PhysicsSource
PhysicsVertex
Pose3
PosePart
Vector2

Enums§

ExpressionBlend
Blend mode for an expression parameter.
MotionSegment
Segment interpolation mode between two motion points.
PhysicsValueKind

Constants§

DEFAULT_EXPRESSION_FADE_IN_TIME
Default fade-in time used when an expression omits FadeInTime.
DEFAULT_EXPRESSION_FADE_OUT_TIME
Default fade-out time used when an expression omits FadeOutTime.
DEFAULT_POSE_FADE_IN_TIME

Functions§

apply_expression_blend
Applies an expression blend operation to a current value.
apply_expression_parameter
Applies one expression parameter operation to a current value.
apply_motion_fade
Blends a current value toward a sampled motion value.
copy_pose_link_opacities
easing_sine
Cubism sine easing used for fades.
motion_fade_in_weight
Calculates a motion-level fade-in weight.
motion_fade_out_weight
Calculates a motion-level fade-out weight.
parameter_curve_fade_weight
Combines motion-level and per-curve fade values into one curve weight.
resolved_expression_fade_in_time
Resolves an optional expression fade-in time to a non-negative value.
resolved_expression_fade_out_time
Resolves an optional expression fade-out time to a non-negative value.
resolved_pose_fade_in_time
update_pose_group_opacities