Function
The
Random Move function is a macro that applies noise functions
to the pan and angle values of Move 2D. Usually the image
will be scaled to a bigger size to prevent black edges that
may appear while shaking.
Parameters
|
Type
|
Defaults
|
Function
|
generalAmount |
float
|
1 |
All
parameters will be multiplied with this number, so it's
possible to animate all of them at once. 0 means that
the incoming clip won't be changed and 1 gives the maximum
amount of shaking. |
frequency |
float
|
3 |
The
frequency of the shake and rotate. A higher amount means
more jittering. |
amountHorizontal |
float
|
5 |
The
maximum amount of pixels moved in the horizontal shake. |
amountVertical |
float
|
5 |
The
maximum amount of pixels moved in the vertical shake.
|
amountZoom |
float
|
5 |
The
maximum amount of the zoom in. |
amountRotate |
float
|
5 |
The
maximum amount of rotation. |
motionBlur |
float
|
0 |
Motion
Blur quality level 0 means no blur, whereas 1 represents
standard filtering. For more speed, use less than 1.
This value gets multiplied by the Global Parameter motionBlur. |
shutterTiming |
float
|
0.5 |
Shutter
length 0 means no blur, whereas 1 represent a whole
frame of blur. Note that standard camera blur is 180
degrees, or a value of 0.5. This value gets multiplied
by the Global Parameter shutterTiming. |
shutterOffset |
float
|
0 |
This
is the offset from the current frame at which the blur
is calculated. Default is 0, previous frames are less
than 0. |
scale |
float
|
1.03 |
This
scales in the video. The higher the shake, the higher
this amount must be set to prevent black edges. |
Synopsis
image
RandomMove(
image In,
float generalAmount,
float frequency,
float amountHorizontal,
float amountVertical,
float amountZoom,
float amountRotate,
float motionBlur,
float shutterTiming,
float shutterOffset,
float scale
);
Script
image
= RandomMove( In, generalAmount, frequency, amountHorizontal,
amountVertical, amountZoom, amountRotate, motionBlur, shutterTiming,
shutterOffset, scale );
Command
Line (Terminal)
shake
-randommove generalAmount frequency amountHorizontal amountVertical
amountZoom etc...
Examples
(Terminal)
shake
/www.CGM-online.com/doc/CGM_Logo.tif -randommove 1 2 3 3
3 3
- adds the RandomMove transform to the CGM logo. The
frequency is 2 and the amounts for the
different kinds of movements are 3. The preset values
are used for all other parameters.
shake /www.CGM-online.com/doc/CGM_Logo.tif -randommove
"Linear(0,0@1,1@20)"
- adds the RandomMove transform to the CGM logo and
animates the amout of the effect from 0 to 1
during the frame range of 1 to 20.
Example
(Shake's Command Line)
/www.CGM-online.com/doc/CGM_Logo.tif -randommove 1 2 6 6
6 6
|