Closed Dearliet closed 2 months ago
The pre post keyframes contain multiple data points.
That's what the arrays are for.
It might even be more straightforward to change it like this:
{
"channel": "rotation",
"x": ["0", "0"],
"y": ["0", "2"],
"z": ["0", "0"]
}
{
"channel": "rotation",
"x": {"pre": "0", "post": "0"},
"y": {"pre": "0", "post": "2"},
"z": {"pre": "0", "post": "0"}
}
I'd prefer converting them to more direct arrays. There's no keyframe types that have more than 2 data points anyway.
{
"channel": "rotation",
"value": ["0", "0", "0"],
"post": ["0", "0", "0"]
}
Sounds great 👍
Current Format:
Proposed Format:
data_point
object, making it clear and predictable across all keyframesFurther Simplified Alternative:
data_point
field and placing keyframe attributes directly under channel, the structure avoids redundant nesting, making it easier for developers to read and processI personally recommend adopting the further simplified format. It is the easiest to parse and offers the clearest and most straightforward approach.