Output file name - beginner 2.82

I rendered out my first blender animation. Yay! https://vimeo.com/387963574
But I have quite a bit of work to do on materials and I’d like to do compositing right in blender. I’m having a heck of a time figuring things out because I can’t find the Simple answers to why something isn’t as I expected. How to use CryptoMatte? Sure, no problem. That was easy. How to save a file from the ? That one is Much more difficult to find. Everyone is so focused on how to do a task, even in beginner compositing, they never show you how to actually Save. Most I’ve seen are showing one image, they just tell you to click the save button. But that doesn’t work for an animation obviously.

So not sure if it’s correct, but I ended up adding a File Output node. And that Does save the rendered image. Only, I can’t figure out how to change the name. It looks like in 2.79 you have a path, and a filename. But in 2.8 it seems you only have a path. So I can’t figure out how to actually define the filename. I tried {path}\filename###.png and was expecting that to save “filename0227.png” for frame 227. But instead I got “path\filname###\Image0227.png”
Well that’s embarrassing.

So it Really seems like I just plain can’t find where to define the image file name.
When I rendered the animation, I saved it in {path}\GlyphTest and it saved GlyphTest0100.png for my first image. That’s pretty much what I expected.

Anyone have an idea of what the heck I’m doing wrong? I really don’t want to have to rename every image sequence after rendering.

Try pressing n in the node editor with the output node selected and pick the item tab. I am not sure how it works but I think you can figure it out from there.

Well the funny thing about it, is it’s not even in your screengrab. The image name is “File Subpath”
Anyway, figured that out, so Thank you.

Yeah I think the forum cropped it, if you click on it you will see it. Your welcome.

Now this would be interesting to see how you can do this via code.
I am able to change the base path like this:

bpy.context.scene.node_tree.nodes[“CompositorNodeOutputFile”].base_path = “C:/Users/me/output”

But how can I change the File Subpath?

Thank you!

Never mind, I found a solution. Since an OutputFile node can have multiple image slots you can set the name for each slot like this:

bpy.context.scene.node_tree.nodes[“CompositorNodeOutputFile”].file_slots[0].path = “file_name_without_extension”