Blender Render Path Maker

Hello,

I am not sure I have seen a similar addon, even if it probably already exists, but still it was fun to create.

It replaces keywords in the Output Path, by a piece of code you can specify yourself in the addon preferences. So for example you want your images to be in a folder that contains the name of the active camera, the keyword can be “”, the piece of code would be “bpy.context.scene.camera.name”. When the render starts it will replace the keyword in the path, render your images, and put the original name back.

You can download it here on my github:

The only thing I didn’t manage to do for now is to put some defaults, so if you have any idea you can let me know :slight_smile:

And at some point I’ll probably add the possibility to link a file that contains the script to run to get the information.

Cheers !

EDIT:
It is now possible to repalce a tag with a custom path (not an python expression) or even a path to a python script file.

5 Likes

Thank you very much for this!

This kind of functionality should be in Blender without the need for addons. I posted something very similar to Right-Click Select almost 3 years ago and it got a whopping 4 likes so far.

Having to manually update the output path every time you render a new version or shot is not only annoying but very very error prone (overwriting existing and important files, mixing up paths / versions, inconsistent naming during a project) and could be solved once and for all very easily as you prove.

2 Likes

Yes, originally I wanted to do it inside blender directly, but I didn’t manage to do it, maybe I’ll give it another try someday haha :slight_smile:

3 Likes

Already create a node base tool to replace things in render(Including paths)
Links atticus-lv/RenderNode: node based render workflow for blender (github.com)

1 Like

Hi,
Now that Blender 4.2 is out, I made this addon an extension available directly from Blender preferences or right there.

Cheers !

1 Like

Hello, can you please add FileSubPath to search for placeholder token?
The main problen is that base path in output node is creating folder, but not a file with token name/.

replace_token = '<camname>'
replace_by = bpy.context.scene.camera.name

for node in bpy.context.scene.node_tree.nodes:
    if node.type == 'OUTPUT_FILE':
        for slot in node.file_slots:
            if replace_token in slot.path:
                slot.path = slot.path.replace(replace_token, replace_by)

I posted it on github proposal page also

1 Like

Hi,
Thanks for the report, just updated the addon on extensions.blender.org :slight_smile:
Cheers !