Can I get an explanation for what the various fields mean?
I am in a situation where to get a perfect loop, I need to manually set the position of all of the points of a spline (path).
For reference, here's the text of a path:
"Wavy Dash Path": {
"type": "path",
"lengths": [ 478.48, 1286.88, 2172.83, 2901.18, 3371.57, 6672.02 ],
"vertexCount": 18,
"vertices": [ -241.49, -724.74, -83.92, -646.13, 5.89, -598.5, 160.63, -480.17, 358.15, -478.31, 569.78, -476.38, 809.14, -755.41, 1112.43, -749.7, 1423.2, -747.17, 1649.24, -482.72, 1951.42, -484.61, 2253.6, -486.5, 2365.37, -755.14, 2616.02, -758.89, 2831.89, -758.78, 2951.62, -703.25, 3056.17, -621.43, 3155.29, -547.01 ]
},
Yet somehow, this didn't work:
"Sinusoidal Path": {
"type": "path",
"lengths": [ 478.48, 1286.88, 2172.83, 2901.18, 3371.57, 6672.02 ],
"vertexCount": 40,
"vertices": [
0, 0,
100, 76,
200, 146,
300, 202,
400, 236,
500, 250,
600, 236,
700, 202,
800, 146,
900, 76,
1000, 0,
1100, -78,
1200, -148,
1300, -204,
1400, -238,
1500, -250,
1600, -238,
1700, -204,
1800, -148,
1900, -78,
2000, -2,
2100, 146,
2200, 146,
2300, 202,
2400, 236,
2500, 250,
2600, 236,
2700, 202,
2800, 146,
2900, 76,
3000, 0,
3100, -78,
3200, -148,
3300, -204,
3400, 146,
3500, -250,
3600, -238,
3700, -204,
3800, -148,
3900, -78,
4000, -2]
}
Nevermind, it seems my vertex count was off somehow (o.o)
Hurray - here's a hand-written sinusoidal path for anyone who wants to import one:
"Sinusoidal Path": {
"type": "path",
"lengths": [ 478.48, 1286.88, 2172.83, 2901.18, 3371.57, 6672.02 ],
"vertexCount": 21,
"vertices": [
-200, -125,
0, -125,
200, -125,
300, 125,
500, 125,
700, 125,
800, -125,
1000, -125,
1200, -125,
1300, 125,
1500, 125,
1700, 125,
1800, -125,
2000, -125,
2200, -125,
2300, 125,
2500, 125,
2700, 125,
2800, -125,
3000, -125,
3200, -125]
}