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
- Effective
Forces - Expression3
- Parsed Cubism
exp3.jsonexpression data. - Expression
Parameter - One parameter operation in an expression.
- Expression
Reference - 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.jsondata. - Motion3
- Parsed Cubism
motion3.jsondata. - Motion
Curve - One animated target curve in a motion file.
- Motion
Meta - Metadata from a Cubism motion file.
- Motion
Point - A point on a motion curve.
- Motion
Reference - Reference to a motion file from
model3.json. - Physics3
- Physics
Dictionary Entry - Physics
Input - Physics
Meta - Physics
Normalization - Physics
Normalization Value - Physics
Output - Physics
Setting - Physics
Source - Physics
Vertex - Pose3
- Pose
Part - Vector2
Enums§
- Expression
Blend - Blend mode for an expression parameter.
- Motion
Segment - Segment interpolation mode between two motion points.
- Physics
Value Kind
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