Difference between revisions of "Doc:Rescale Animations"
(→Understanding what are we rescaling: added rescale diagram) |
(→Using the paste canvas) |
||
Line 24: | Line 24: | ||
[[Image:RescaleDiagram.png]] | [[Image:RescaleDiagram.png]] | ||
− | |||
(this diagram was done in synfig :D) | (this diagram was done in synfig :D) | ||
− | + | == Using the Paste canvas == | |
+ | |||
+ | Once that we know what are rescaling then lets modify the animation to make those changes on it. | ||
+ | |||
+ | Go to the Paste canvas you have obtained in the first step and go to its [[Time Offset Parameter]]. You have to insert the following waypoints in the animation of that parameter: | ||
+ | |||
+ | # At frame A' insert a value of 0f. This will maintain this frame untouched (and the ones that are before also if there are no more waypoints there). | ||
+ | # At frame C insert the result of subtract from the time value at frame A the time value at frame C (that is C-A in time units). It could be positive or negative. In the sample diagram is negative and corresponds to -2s6f if the animation is at 24fps and we assume that each division in the diagram is a second. | ||
+ | # At frame D insert the result of subtract from the time value at frame B the time value at frame D (that is D-B in time units). It could be positive or negative. In the sample diagram is negative and corresponds to -18f if the animation is at 24 fps and we assume that each division in the diagram is a second. | ||
+ | # At frame B' insert a value of 0f. This will maintain this frame untouched (and the ones that are after also if there are no more waypoints there). | ||
+ | |||
+ | ==TO DO == | ||
+ | Include links to other wiki pages. | ||
+ | Include an animation sample. |
Revision as of 16:40, 18 October 2007
Contents
Introduction
Rescale an animation means modify the initial and final times where a portion of animation is shown. Imagine that you have created a complex animation for cretain objects, but when you watch it with the rest of the backgrounds or other animated objects it seems to be "out of time" (too late, too soon, too slow or too quick). You would like to modify the animation smoothly from one time segment [A-B] to other [C-D]. But how?...
You could think on move the waypoints one by one and rescale the animation manually. Although it could be possible, most of the times it would be tedious and fruitless.
With synfig it is not more easy.
Encapsulate the layers
First of all you need to encapsulate the layers that are going to be rescaled in time. It is needed to make use of the Time Offset Parameter of the Paste Canvas layer.
Understanding what are we rescaling
We want to rescale from [A-B] to [C-D]. So we want that when the original animation reach the A time then it would be reached at time C instead. Same apply to B and D. But if you move the animation in that way, what happened to frames before frame A that now are before C? and what happened to frames after B that are now after D?. They're rescaled too. Is that what we want?. In the most general case we would like the frames 0f to A' (A'<A) and B' to the end of the animation (B'>B) to be untouched.
There are some conditions that the rescaled time segment [A-B], the desired time segment [C-D] and the untouched segments [0f-A'] and [B'- end] must fulfil:
- Frame A must be smaller than frame B. Obviously
- Frame C must be smaller than D.
- Frame A' must be smaller than A
- Frame B' must be greater than B
- Frames C and D must be smaller than B' and bigger than A'
(this diagram was done in synfig :D)
Using the Paste canvas
Once that we know what are rescaling then lets modify the animation to make those changes on it.
Go to the Paste canvas you have obtained in the first step and go to its Time Offset Parameter. You have to insert the following waypoints in the animation of that parameter:
- At frame A' insert a value of 0f. This will maintain this frame untouched (and the ones that are before also if there are no more waypoints there).
- At frame C insert the result of subtract from the time value at frame A the time value at frame C (that is C-A in time units). It could be positive or negative. In the sample diagram is negative and corresponds to -2s6f if the animation is at 24fps and we assume that each division in the diagram is a second.
- At frame D insert the result of subtract from the time value at frame B the time value at frame D (that is D-B in time units). It could be positive or negative. In the sample diagram is negative and corresponds to -18f if the animation is at 24 fps and we assume that each division in the diagram is a second.
- At frame B' insert a value of 0f. This will maintain this frame untouched (and the ones that are after also if there are no more waypoints there).
TO DO
Include links to other wiki pages. Include an animation sample.