Here's a small portion of a simple AS file with one bone that has keys for the rotation. Each key is set to each interpolation type in the order in the list (you can see the numbers are "out of sequence" when referenced through scripting).
For some odd reason "6" is not used. The numbers are 0-5, 7-8.
The keys start at the section that says "keys 10". The first number is the frame. The second number is the key interpolation followed by 2 optional values for cycle and noisy. The other interpolation modes do not have optional values which are indicated by "-1".
The last value is of course the value of the channel. In this case it is rotation.
Code: Select all
skeleton
[
binding_mode 1
bones 1
"1" -1 -1 1 -1 1 1 -1 1 true 0.696276 1 0 0
false -1.221731 1.221731
[
keys 1
0 1 0.1 0.5 false
]
2 2 1
[
keys 1
0 1 0.1 0.5 -0.24919 -0.102127
]
[
keys 10
0 1 0.1 0.5 0.77285
1 1 -1 -1 0.785195
12 0 -1 -1 0.785195
24 2 -1 -1 0.785195
36 7 -1 -1 0.785195
48 8 -1 -1 0.785195
60 3 -1 -1 0.785195
72 4 0.1 0.5 0.785195
84 5 2 -1 0.805762
93 5 -1 84 0.84063
]
1-3, 7 and 8 are straight forward.
4 is "noisy". It has two additional values. Amplitude and Scale.
72 is the frame number. 0.1 is the amplitude. 0.5 is the "scale". I set it to "2" which is 0.5. Setting it to 1 = 1.0, 2 is 0.5, 8 is 0.125. I am guessing this is a percentage value. 8 is 1/8th (0.125), 2 is 1/2 (0.5) etc.
5 is "cycle". I used it twice to show the different value settings. It has two values, the radio box value and the box to enter numbers. The choice of how the cycle functions determines the placement of the numbers in the AS file.
In this one I chose "relative" and "2" for the frames to go back.
84 is the frame the key is on. 5 is the interpolation. 2 is the number of frames to "go back". -1 indicates that this value is not used since "relative" was chosen.
In this one I chose "absolute", and set the frame number to "84".
95 is the frame the key is on. 5 is the interpolation. -1 indicates "absolute" was chosen. 84 indicates the exact frame to go to for the loop.
-vern