Offset Animation Command

From Serious Sam Wiki
Jump to: navigation, search

The offset animation command moves a specified frame range of the animation forward or backward. The dialog that opens lets you define

  • the desired offset in frames, and
  • the frame range to offset through start and stop frame.

The frame range has to include at least one key frame for the command to produce any effect.

Info 16x16.png Note: The animation properties are not affected by the offset and potentially have to be adjusted manually by changing the first and/or last frame so that all animation frames are displayed.

Keyboard Shortcut: ⇧ Shift+S

Please Specify Offset Params Dialog

Screenshot of Please specify offset params dialog, Serious Editor 4.0.

The Please specify offset params dialog opens when the offset animation command is executed. It features the following parameters:

Offset value
Offset amount in number of frames. Negative values will move the offset frame range to an earlier point of the animation.
Start frame
The first frame of the offset frame range.
Stop frame
The last frame of the offset frame range.

Examples

To exemplify the offset animation command lets assume we have a simple animation with nine frames (0-8) and three key frames located at 0, 4, and 8:
OffsetAnimation 01.png

Entire Animation Offset

  • Offset value: 4
  • Start frame: 0
  • Stop frame: 8

OffsetAnimation 01.1.png

  • The first key frame is now located at 4 which means there are four frames before it with the same channel values.
  • The second key frame is now located at 8 which means that it is the last frame of the animation.
  • The third key frame is now located at 12 which means that it is outside the frame range of the animation. This is indicated by the frame bar.

By adjusting the first frame to 4 and the last frame to 12 in the Animation panel we get the original animation: OffsetAnimation 02.png

However, we could alternatively only set the last frame to 12 in the Animation panel, thereby adding four more frames before the first animation key frame: OffsetAnimation 02.1.png

Note that the same result (with differing frame numbers) can be achieved simply by changing the first frame of the original animation to -4 in the animation panel.

Animation Beginning/End Offset

  • Offset value: 4
  • Start frame: 4
  • Stop frame: 8
  • Last frame: 12 (Animation panel)

OffsetAnimation 03.png

This example shows how you can insert (non-key) frames by offsetting the end of the animation:

  • The second key frame is moved to 8 which means that there are four more frames between the first and the second key frame.
  • The third key frame is now at 12.
  • The channel values of the non-key frames are adjusted so that the animation speed change is steady.

Inner Animation Part Offset

  • Offset value: 4
  • Start frame: 2
  • Stop frame: 6
  • Last frame: 10 (Animation panel)

OffsetAnimation 04.png

Offsetting only an inner part of an animation leads to problematic results:

  • The second key frame is moved to 8. Because the last animation frame was adjusted to 10 in the Animation panel there are two more frames after the second key frame with the channel values of the second key frame.
  • The third key frame is overwritten by the offset frames.
  • The channel values of the non-key frames between the first and the last key frame are adjusted as if the second key frame still had its original channel values.

The last item is the problematic bit and cannot be corrected easily. Therefore, offsetting inner parts of animations should be used with caution!