pymel.core.rendering.doBlur¶
- doBlur(*args, **kwargs)¶
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.iffin the same directory as the input colorFile. There is currently no control over the name of the output blurred image.
Flags:
Long Name / Short Name Argument Types Properties colorFile / c unicode Name of the input color image to be blurred. length / l float Scale applied on the motion vector. Ranges from 0 to infinity. memCapSize / o float Size of the memory cap, in bytes 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 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 bool Whether to smooth the color or not. vectorFile / v unicode Name of the input motion vector file. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.doBlur
Example:
import pymel.core as pm pm.doBlur( l=2, s=1, m=2, c='testimage', v='testimage.motion' )