Page MenuHome

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


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

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:
image_node ='CompositorNodeRLayers')
denoiser_node ='CompositorNodeDenoise')
image_to_denoiser_link_1 =[0], denoiser_node.inputs[0])
image_to_denoiser_link_2 =[4], denoiser_node.inputs[1])
image_to_denoiser_link_3 =[5], denoiser_node.inputs[2])

Last two lines of code produce no result.