pymel.core.rendering.doBlur

static rendering.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 ../../../_images/create.gif
 
Name of the input color image to be blurred.
length (l) float ../../../_images/create.gif
 
Scale applied on the motion vector. Ranges from 0 to infinity.
memCapSize (o) float  
   
sharpness (s) float ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
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 ../../../_images/create.gif
 
Whether to smooth the color or not.
vectorFile (v) unicode ../../../_images/create.gif
 
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' )

Previous topic

pymel.core.rendering.displacementToPoly

Next topic

pymel.core.rendering.dolly

Core

Core Modules

Other Modules

This Page