Go to: Synopsis. Return value. Flags. Python examples.


doBlur([colorFile=string], [length=float], [sharpness=float], [smooth=float], [smoothColor=boolean], [vectorFile=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

doBlur is undoable, NOT queryable, and NOT editable.

The doBlur command will invoke the blur2d, which is a Maya stand-alone application to do 2.5 motion blur given the color image and the motion vector file. For a given input colorFile name, e.g. "xxx.iff", the output blurred image will be "xxx_blur.iff" in the same directory as the input colorFile. There is currently no control over the name of the output blurred image.

Return value



colorFile, length, sharpness, smooth, smoothColor, vectorFile
Long name (short name) Argument types Properties
length(l) float create
Scale applied on the motion vector. Ranges from 0 to infinity.
sharpness(s) float create
Determines the shape of the blur filter. The higher the value, the narrower the filter, the sharper the blur. The lower the value, the wider the filter, the more spread out the blur. Ranges from 0 to infinity.
smooth(m) float create
Filter size to smooth the blurred image. The higher the value, the more anti-aliased the alpha channel. Ranges from 1.0 to 5.0.
smoothColor(r) boolean create
Whether to smooth the color or not.
colorFile(c) string create
Name of the input color image to be blurred.
vectorFile(v) string create
Name of the input motion vector file.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.doBlur( l=2, s=1, m=2, c='testimage', v='testimage.motion' )