Bulk rename script

Hey gang,

decided to share a simple script I am using quite often when creating versions. It let’s you perform bulk renames (initial naming was batch rename which was quite a bit misleading …) on the desktop/library. You can find n replace strings and/or add tokens (<date> / <time> / <count##>) similarly to flames own naming schemes.

Just get the bulk_rename.py from the linked repo and drop it in your /opt/Autodesk/shared/python folder. Tested for v2020.x but should also work for 2021. If you need additional tokens the script should be fairly easy to extend. However if you can’t or just don’t want to bother with python I can also add more tokens if I got the time. Just tell me what exactly you need.



holy cow this looks amazing!!!

Could you do a super quick write up for those that haven’t ventured to the flamepy side yet?

That can certainly be done.
What exactly do you have in mind / think could be helpful?
An explanation of the functionality of the script? Guidance for understanding the code in order to extend the script? Or are you thinking of an even more general approach?

1 Like

I mean, any or all of that sounds amazing. I’m just getting started with Python and it’d be great to help anybody else in the same boat see what you’ve done and help them get started on their own.

I’d like a script that can iterate a filename. eg 30_sec_edit_v01.
Right-click on that to iterate it to v02. ie duplicate v01 then rename the original v01 to v02 (so that it stays as an open sequence)

Is this doable in python?

Very much so. Our engineer has written one to do just that, but it’s bespoke to our naming convention. I can share it on Monday.

1 Like

This is what we use to version up. Our naming convention is foobar_gw##_ddmm

gw## = Version number
ddmm = Day / Month

The script looks for ‘gw’ and uses the number after that to increment and then attaches today’s date to the end. You could use this as a base to tweak to whatever your convention is.

EDIT: So links are very visible…click Here to download.

Thanks. All I have to do now is get my head into python.

btw the “this” link is not there.

That should be fixed now. If not: https://www.dropbox.com/s/hfkhwn7ntzxwhwx/gw_seq_version_up.py?dl=0

The “this” link doesnt go anywhere. Maybe the h at the head is missing.

All very true, haha. Ok…third time’s the charm.

Ok … I will see if I can write something together if I got some sparetime. (Un)fortunatly there are jobs again, which is actually a good thing, but keeps me from doing side projects :wink: .


This is my favorite thread so far! :grinning:

How dare you apologize for doing work!

Hi Guys.
Can i set to default the render node naming, as “batch name” token?
in time, tks @JulianMartinz ! usefull py! :wink:

Yes. This is in preferences under the BFX/Batch tab.

Thanks, @randy
I’m feeling like an idiot. :sweat_smile:
sorry about stupid questions guys!

1 Like

You are not an idiot! You had the courage to show up here and create an account. You stumbled upon on old thread that reminded you that you didn’t know how to do something. Then you had the courage to ask something that you didn’t know. And now you know. Today it was about this. One day you will be asking about how to do something in Python and we’ll all be begging for you to hire us.

Thank you for asking a question.

I encourage anyone with any questions to please ask. If you can’t, private message someone here that you trust. Or join our Discord server https://discord.gg/JMK4jtDRvx and you can real time voice chat or text with someone. On any given day there’s about a dozen of us on and chatting. And, if none of that works for you, feel free to ask a question anonymously at https://forms.gle/9NkGX7unT4rTB9kX7 and we’ll answer it on an upcoming podcast.

Thank you for asking.

1 Like