< Interface commands Index Animation timing >

Motion and Paths

A motion moves a region along a path. A path is a generator for a list of points. A motion sequentially uses one of these points to move or stretch a region. There are several ways to define a path described below.

Motion

Item typeMotion
Descriptionmotion of a region in a scene
Actionstarts / stops the motion
Conditiontrue while moving

KeyTypeDefaultDescription
regionRegionthe region to move
pathPathsthe path to move the region along
typebyte=the usage of the points of the path; see definitions for values
stretchbool0if true, the region is stretched, otherwise it is moved
timingTimings<>the timing to control the motion
repeatvalue0the number of frames to play (0 for continuous, -1 for stepping)
endActions<>the action to execute when the motion stops

A motion moves a region even if it is not part of the current scene. All motions are stopped, when a scene is left.

Route

Item typeRoute
Descriptiona route of several paths
Action-
Condition-

KeyTypeDefaultDescription
route[Paths]the list of paths

A route is simply a sequence of pathes that are used one after the other.

Path

Item typePath
Descriptiona list of points
Action-
Condition-

KeyTypeDefaultDescription
points[point]the points of the path

The simplest way to describe a path is by enumerating its points.

RandomPath

Item typeRandomPath
Descriptionrandom points inside of a shape
Action-
Condition-

KeyTypeDefaultDescription
shapeShapesthe set of possible points

This path type generates random points inside of a shape.

Line

Item typeLine
Descriptiona line between two points
Action-
Condition-

KeyTypeDefaultDescription
stepsvaluethe number of points of the line
startvpointthe start point of the line
endvpointthe end point of the line

The line is divided into parts of the same length. The start and the end point are included in the list of points.

Spiral

Item typeSpiral
Descriptiona spiral path
Action-
Condition-

KeyTypeDefaultDescription
stepsvaluethe number of points of the spiral
centervpointthe center of the spiral
startRadiusvaluethe start radius
endRadiusvaluethe end radius
startDegreevalue0the degree on start
endDegreevalue360the degree at the end
stretchvalue100the horizontal stretching factor in percent
rotatevalue0the rotation of the spiral

The spiral lets you define several kinds of motions around a point. In any case, the points will be distributed even according to a circle around the center before any transformation occurs. Start radius and degree determine the start point, end radius and degree the end point. If start and end radius are the same, the path is a circle or an ellipse. Otherwise, the path is a spiral. The stretching factor deformes the path horizontally. The rotation factor rotate the complete spiral.

Wave

Item typeWave
Descriptiona sinus wave path
Action-
Condition-

KeyTypeDefaultDescription
stepsvaluethe number of points of the wave
startvpointthe starting point of the wave
lengthvaluethe length of the base line of the wave
startAmplitudevaluethe amplitude on start
endAmplitudevaluethe amplitude at the end
absolutebool0the path consists of hills instead of waves
waveLengthvalue20the relative length of one wave
waveStartvalue0the relative starting length
degreevalue0the angle of the base line

A wave is a sinus wave that swings around a virtual base line. The base line is drawn horizontally from the starting point to the right with the given length. The x-values of the points are distributed evenly along the base line and the y-values are the according sinus value. Start and end amplitude, which may be negative, determine the distance of the y-values from the base line. If absolute is true, all points lie on the same side of the base line. The wave length determines the number of ups and downs of the wave along the base line. A value of 40 means a complete wave. The wave start lets the wave start at a different segment of the wave. Again, 40 means a complete wave. Finally, the whole wave may be rotated around the starting point.