CookieLightFilter_v2
Attribute Reference
Properties attributes
blur_far_distance
Float
default: 1.0
Distance from cookie filter
blur_far_value
Float
default: 0.0
Blur filter radius (in texture UV space for planar, or radians for spherical) at the far distance
blur_mid_value
Float
default: 0.0
Blur filter radius (in texture UV space for planar, or radians for spherical) at the mid distance
blur_midpoint
Float
default: 0.5
Distance from cookie filter
blur_near_distance
Float
default: 0.0
Distance from cookie filter
blur_near_value
Float
default: 0.0
Blur filter radius (in texture UV space for planar, or radians for spherical) at the near distance
blur_type
Int enum
0 = “gaussian” (default)
1 = “circular”
Gaussian or circular blur
density
Float
default: 1.0
Controls how much of the cookie is added to the light
gamma
Rgb
default: [ 1, 1, 1 ]
Per-channel gamma used in color-correcting the light filter's texture, if one is present. This is achieved by applying the following formula for each channel:
For input > 0, output = pow(input, gamma)
For input <= 0, output = input
invert
Bool
default: False
Inverts the map
outside_projection
Int enum
0 = “black” (default)
1 = “white”
2 = “default”
What happens outside the frustum of the projection camera. Black (default), White, or Default (This uses the mode set on the Moonray map shader)
projector
Camera
default: None
If a projector is specified, it overrides the node_xform and projector_* attributes
texture
String filename
default:
File name of the texture applied to the light filter. Any file format supported by OpenImageIO can be used.
General attributes
node_xform
Mat4d blurrable
default: [ [ 1, 0, 0, 0 ], [ 0, 1, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 0, 1 ] ]
Filter orientation
on
Bool
default: True
Turns the light filter on/off.
projector_film_width_aperture
Float
default: 24.0
Size of the camera image plane
projector_focal
Float
default: 30.0
Focal length of the lens when using perspective projection
projector_pixel_aspect_ratio
Float
default: 1.0
Aspect ratio of the projection
projector_type
Int enum
0 = “perspective” (default)
1 = “orthographic”
2 = “spherical_latlong”
Perspective or orthographic planar projection, or a spherical latlong (equirectangular) projection that wraps the texture around the projector in all directions. Spherical mode ignores the projector focal length, film width and pixel aspect ratio, and applies even when a projector camera is attached (only the projector's transform is used).