Depth of Field

Topic: version 4 MAXScript New Features/

Depth of field is available for any renderer plug-in via a published function publishing interface. No ui has been added. Functionality can be tested by enabling various parameters via MAXScript, and performing a normal render.

The settable dof parameters can be seen by typing 'apropos "dof"' in the MAXScript listener window or here.

To create a DOF display in a camera viewport, simply call

maxops.DisplayActiveCameraViewWithMultiPassEffect

Note that if the active view is not a camera view, or if DOF is not turned on in the camera's properties, then this call does nothing. Additionally, note that this method works with general multi-pass effects and not just DOF.

See also