# Set image settings for each individual File Output Node, in the Python API

In one scene I have two seperate FileOutputNodes and I want different color depths and file formats for each.

In the Blender GUI this is simple. You can press a FileOutputNode, then press N. Then the Properties panel shows and you can change the image settings for each node.

How do I do the same through the python API? I tried creating seperate bpy.types.ImageFormatSettings for each node, but unfortunately that attribute is read-only.

In particular, I want one node to have Open_EXR, 16-bit RGB; the other PNG 8-bit RGB.

I know I can create two seperate scenes and set the image settings for each scene, but I'd rather have one scene (because that's less code).

You can actually set the settings for each individual node.

file_output_node = tree.nodes.new('CompositorNodeOutputFile')

file_output_node.format.file_format = "PNG" # default is "PNG"