Hey all!
I'm building a tool that will refresh the libraries of selected collections. I've almost got it but I want to be able to adjust the collection trailing number (present in all of my collections) so that it doesn't matter what 3 digits they are.
Here is my example variable:
colfilename = "SHW_" + a + "Rigging_v\\d{3}.blend"
Whereas a = selected collection
Blender returns the \\d{3} literally in the string.
Returns:
"SHW_CollectionName_Rigging_v\\d{3}.blend"
I would expect it to return:
"SHW_CollectionName_Rigging_v123.blend" #or any 3 digit number after the "v"
I am using import re to allow for regular expressions. The tools I'm developing will use this or a similar method a lot as I continue so any suggestions on how to handle this are welcomed!