Hi!
In the latest bodymovin exporter it's possible to export frame rate for precomps.
The property is Precomposition.fr
and contains a number if it exists.
Here's an example Lottie JSON exported with Bodymovin 5.8.0.
{
"v": "5.8.0",
"fr": 30,
"ip": 0,
"op": 30,
"w": 540,
"h": 960,
"nm": "Comp 1",
"ddd": 0,
"assets": [
{
"id": "comp_0",
"nm": "Shape Layer 1 Comp 1",
"fr": 5,
"layers": [
{
"ddd": 0,
"ind": 1,
"ty": 4,
"nm": "Shape Layer 1",
"sr": 1,
"ks": {
"o": { "a": 0, "k": 100, "ix": 11 },
"r": { "a": 0, "k": 0, "ix": 10 },
"p": {
"a": 1,
"k": [
{
"i": { "x": 0.833, "y": 0.833 },
"o": { "x": 0.167, "y": 0.167 },
"t": 0,
"s": [79, 268, 0],
"to": [65.833, 70.333, 0],
"ti": [-65.833, -70.333, 0]
},
{ "t": 28.99951171875, "s": [474, 690, 0] }
],
"ix": 2,
"l": 2
},
"a": { "a": 0, "k": [0, 0, 0], "ix": 1, "l": 2 },
"s": { "a": 0, "k": [100, 100, 100], "ix": 6, "l": 2 }
},
"ao": 0,
"shapes": [
{
"ty": "rc",
"d": 1,
"s": { "a": 0, "k": [100, 100], "ix": 2 },
"p": { "a": 0, "k": [0, 0], "ix": 3 },
"r": { "a": 0, "k": 0, "ix": 4 },
"nm": "Rectangle Path 1",
"mn": "ADBE Vector Shape - Rect",
"hd": false
},
{
"ty": "fl",
"c": { "a": 0, "k": [1, 0, 0, 1], "ix": 4 },
"o": { "a": 0, "k": 100, "ix": 5 },
"r": 1,
"bm": 0,
"nm": "Fill 1",
"mn": "ADBE Vector Graphic - Fill",
"hd": false
}
],
"ip": 0,
"op": 30,
"st": 0,
"cp": true,
"bm": 0
}
]
}
],
"layers": [
{
"ddd": 0,
"ind": 1,
"ty": 0,
"nm": "Shape Layer 1 Comp 1",
"refId": "comp_0",
"sr": 1,
"ks": {
"o": { "a": 0, "k": 100, "ix": 11 },
"r": { "a": 0, "k": 0, "ix": 10 },
"p": { "a": 0, "k": [270, 480, 0], "ix": 2, "l": 2 },
"a": { "a": 0, "k": [270, 480, 0], "ix": 1, "l": 2 },
"s": { "a": 0, "k": [100, 100, 100], "ix": 6, "l": 2 }
},
"ao": 0,
"w": 540,
"h": 960,
"ip": 0,
"op": 30,
"st": 0,
"cp": false,
"bm": 0
}
],
"markers": [],
}