-motion/SetMotionBlur

Function

This is the global motion blur control. You can use it to either multiply all per-node motion blur settings, or to override them. Its very handy because you can individually tune each transform node to have seperate settings, and then you change the global motionBlur to 0 so you can work on other aspects of the script.

You can also not use SetMotionBlur in the script (or in the interface), and then set it later when you execute the script on the command line. That way, you don't actually have to calculate the blur when you load up the script in the interface.

Parameters
Type
Defaults
Function
quality
float
0

By setting quality to 0, you turn off motion blur calculations.

If overide is set to 0, Shake will multiply the motionBlur value of each animated transform node (ie, Move2D, Scale, CornerPin, etc) by this number.

.5 = regular quality
1 = good quality
>1 = greatest quality

override
int
0

0 = multiply each node's motionBlur value by quality

1 = set each node's motionBlur value to quality.

shutterTiming
float
.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 .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.

Synopsis

void SetMotionBlur( 
  float motionBlur, 
  float shutterTiming,
  float shutterOffset 
);

Script

SetMotionBlur( 
  quality, 
  shutterTiming,
  shutterOffset 
);

Command Line

shake -motion quality [override]