outputlayer
This node describes one specific layer of render output data. It can be connected to the outputlayers attribute of a screen node. It has the following attributes:
| Name | Type | Default |
|---|---|---|
variablename | string |
This is the name of a variable to output.
| Name | Type | Default |
|---|---|---|
variablesource | string | shader |
Indicates where the variable to be output is read from. Possible values are:
shader— computed by a shader and output through an ᴏsʟ closure (such asoutputvariable()ordebug()) or theCiglobal variable.attribute— retrieved directly from an attribute with a matching name attached to a geometric primitive.builtin— generated automatically by the renderer (e.g."z","alpha","N.camera","P.world").
| Name | Type | Default |
|---|---|---|
layername | string |
This will be name of the layer as written by the output driver. For example, if the output driver writes to an EXR file then this will be the name of the layer inside that file.
| Name | Type | Default |
|---|---|---|
scalarformat | string | uint8 |
Specifies the format in which data will be encoded (quantized) prior to passing it to the output driver. Possible values are:
int8— signed 8-bit integeruint8— unsigned 8-bit integerint16— signed 16-bit integeruint16— unsigned 16-bit integerint32— signed 32-bit integeruint32— unsigned 32-bit integerhalf— IEEE 754 half-precision binary floating point (binary16)float— IEEE 754 single-precision binary floating point (binary32)
| Name | Type | Default |
|---|---|---|
layertype | string | color |
Specifies the type of data that will be written to the layer. Possible values are:
scalar— A single quantity. Useful for opacity (“alpha”) or depth (“Z”) information.color— A 3-component color.vector— A 3D point or vector. This will help differentiate the data from a color in further processing.quad— A sequence of 4 values, where the fourth value is not an alpha channel.
Each component of those types is stored according to the scalarformat attribute set on the same outputlayer node.
| Name | Type | Default |
|---|---|---|
colorprofile | string |
The name of an OCIO color profile to apply to rendered image data prior to quantization.
| Name | Type | Default |
|---|---|---|
dithering | integer | 0 |
If set to 1, dithering is applied to integer scalars. Otherwise, it must be set to 0.
| Name | Type | Default |
|---|---|---|
withalpha | integer | 0 |
If set to 1, an alpha channel is included in the output layer. Otherwise, it must be set to 0.
| Name | Type | Default |
|---|---|---|
sortkey | integer |
This attribute is used as a sorting key when ordering multiple output layer nodes connected to the same output driver node. Layers with the lowest sortkey attribute appear first.
| Name | Type | Default |
|---|---|---|
lightset | <connection> |
This connection accepts either light sources or set nodes to which lights are connected. In this case only listed lights will affect the render of the output layer. If nothing is connected to this attribute then all lights are rendered.
If an environment node is connected here, a component string attribute can be specified on the connection with a value of either sun or background. If this is used, only the corresponding part of the environment will contribute to the output layer.
| Name | Type | Default |
|---|---|---|
lightsetname | string |
This can be provided as friendly name for the connected light set. Otherwise, a default name is built from the connected node.
| Name | Type | Default |
|---|---|---|
outputdrivers | <connection> |
This connection accepts output driver nodes to which the layer’s image will be sent.
| Name | Type | Default |
|---|---|---|
filter | string | blackman-harris |
The type of filter to use when reconstructing the final image from sub-pixel samples. Possible values are: "box", "triangle", "catmull-rom", "bessel", "gaussian", "sinc", "mitchell", "blackman-harris", "zmin" and "zmax".
| Name | Type | Default |
|---|---|---|
filterwidth | double | 3.0 |
Diameter in pixels of the reconstruction filter. It is not applied when filter is "box" or "zmin".
| Name | Type | Default |
|---|---|---|
backgroundvalue | float | 0 |
The value given to pixels where nothing is rendered.
| Name | Type | Default |
|---|---|---|
backgroundlayer | <connection> |
This connection accepts a single output layer node which is meant to be displayed as a background. Not all output drivers support this behavior, so it might be ignored.
| Name | Type | Default |
|---|---|---|
lightdepth | string | auto |
Allows filtering light contributions according to the number of bounces light has made from a light source to the objects in front of the camera. This is only meaningful when the layer’s variablesource is set to shader (otherwise, it’s ignored). Possible values are:
direct— Only light coming directly from light sources to visible objects (ie: with no bounce) is included.indirect— Only light coming from light sources to visible objects through at least one bounce is shown.both— All light is included.auto— Selects the appropriate value for lightdepth according to the value of thevariablenameattribute. If it ends with either.director.indirect, the corresponding light depth will be used, and the suffix will be removed from the effective variable name. Otherwise, it will default toboth.
| Name | Type | Default |
|---|---|---|
cryptomatte.enable | int | 0 |
Setting this attribute to 1 enables Cryptomatte encoding of the layer’s data. cryptomatte.level should also be set properly.
| Name | Type | Default |
|---|---|---|
cryptomatte.level | int | 0 |
If this value is negative, the layer will contain a human-readable “Cryptomatte header” image. Otherwise, the value indicates the index of the first Cryptomatte level that will be output. Since Cryptomatte levels are output by pairs, a Cryptomatte file with 4 levels would contain output layers with cryptomatte.level set to -1, 0 and 2. This has no effect unless Cryptomatte encoding is enabled using cryptomatte.enable.
Any extra attributes are also forwarded to the output driver which may interpret them however it wishes.