CompositorNodeDefocus(CompositorNode)

base classes — bpy_struct, Node, CompositorNode

class bpy.types.CompositorNodeDefocus(CompositorNode)
angle

Bokeh shape rotation offset in degrees

Type :int in [0, 90], default 0
blur_max

blur limit, maximum CoC radius, 0=no limit

Type :float in [0, 10000], default 0.0
bokeh
Type :enum in [‘OCTAGON’, ‘HEPTAGON’, ‘HEXAGON’, ‘PENTAGON’, ‘SQUARE’, ‘TRIANGLE’, ‘CIRCLE’], default ‘CIRCLE’
f_stop

Amount of focal blur, 128=infinity=perfect focus, half the value doubles the blur radius

Type :float in [0, 128], default 0.0
samples

Number of samples (16=grainy, higher=less noise)

Type :int in [16, 256], default 0
threshold

CoC radius threshold, prevents background bleed on in-focus midground, 0=off

Type :float in [0, 100], default 0.0
use_gamma_correction

Enable gamma correction before and after main process

Type :boolean, default False
use_preview

Enable sampling mode, useful for preview when using low samplecounts

Type :boolean, default False
use_zbuffer

Disable when using an image as input instead of actual zbuffer (auto enabled if node not image based, eg. time node)

Type :boolean, default False
z_scale

Scales the Z input when not using a zbuffer, controls maximum blur designated by the color white or input value 1

Type :float in [0, 1000], default 0.0

Inherited Properties

Inherited Functions

Previous topic

CompositorNodeDBlur(CompositorNode)

Next topic

CompositorNodeDiffMatte(CompositorNode)