Page MenuHome

Can't use extra outputs of Render Layers node via Python API
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: Intel(R) HD Graphics 530 Intel 4.5.0 - Build 25.20.100.6373

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: rB26bd5ebd42e3
Worked: (optional)

Short description of error
In Compositor It's impossible to use extra outputs of Render Layers node via Python API.

Exact steps for others to reproduce the error
Sample code:

bpy.context.scene.view_layers['View Layer'].cycles.denoising_store_passes = True
bpy.context.scene.use_nodes = True
node_tree = bpy.context.scene.node_tree
target_nodes = node_tree.nodes
links = node_tree.links
for node in target_nodes:
    target_nodes.remove(node)
image_node = target_nodes.new(type='CompositorNodeRLayers')
denoiser_node = target_nodes.new(type='CompositorNodeDenoise')
image_to_denoiser_link_1 = links.new(image_node.outputs[0], denoiser_node.inputs[0])
image_to_denoiser_link_2 = links.new(image_node.outputs[4], denoiser_node.inputs[1])
image_to_denoiser_link_3 = links.new(image_node.outputs[5], denoiser_node.inputs[2])

Last two lines of code produce no result.

Details

Type
Bug