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.
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?
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)
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.
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 .
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.