|
24.
|
|
|
The first part of the interpolation statement is used to select a function that time-warps the interpolation. (That is, a function from linear time to non-linear time.) This can either be done by giving the name of a warper registered with ATL, or by giving the keyword "warp" followed by an expression giving a function. Either case is followed by a number, giving the number of seconds the interpolation should take.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:137
|
|
25.
|
|
|
If no warp function is given, the interpolation is run for 0 seconds, using the pause function.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:144
|
|
26.
|
|
|
The warper and duration are used to compute a completion fraction. This is done by dividing the time taken by the interpolation by the duration of the interpolation. This is clamped to the duration, and then passed to the warper. The result returned by the warper is the completion fraction.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:147
|
|
27.
|
|
|
The interpolation statement can then contain a number of other clauses. When a property and value are present, then the value is the value the property will obtain at the end of the statement. The value can be obtained in several ways:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:152
|
|
28.
|
|
|
If the value is followed by one or two knots, then spline motion is used. The starting point is the value of the property at the start of the interpolation, the end point is the property value, and the knots are used to control the spline.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:156
|
|
29.
|
|
|
If the interpolation statement contains a "clockwise" or "counterclockwise" clause, circular motion is used, as described below.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:161
|
|
30.
|
|
|
Otherwise, the value is linearly interpolated between the start and end locations, using the completion fraction.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:164
|
|
31.
|
|
|
If a simple expression is present, it should evaluate to a transform with only a single interpolation statement, without a warper, splines, or circular motion. The properties from the transform are processed as if they were included in this statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:167
|
|
32.
|
|
|
Some sample interpolations are::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:172
|
|
33.
|
|
|
An important special case is that the pause warper, followed by a time and nothing else, causes ATL execution to pause for that amount of time.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/atl.rst:198
|