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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
colorFile (c) | unicode | ||
|
|||
length (l) | float | ||
|
|||
memCapSize (o) | float | ||
sharpness (s) | float | ||
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 | ||
|
|||
smoothColor (r) | bool | ||
|
|||
vectorFile (v) | unicode | ||
|
Derived from mel command maya.cmds.doBlur
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.doBlur( l=2, s=1, m=2, c='testimage', v='testimage.motion' )