[Closed] RTT bake element: what is the .filenameUnique property?
Can anyone explain what the .filenameUnique property of bake elements is used for?
– select an object that was prepared for RTT, then run
bp = $.inodebakeproperties
be = bp.getBakeElement 1
format “filenameUnique = %\n” be.filenameUnique
If this property is set to false, the RTT GUI seems to regenerate a generic bake filename, using the existing path and extension, but generating a new filename from the node name and the bake element name.
The online help just says “Enable/Disable unique file name generation” – which is not terribly helpful to me.
Any insights what this is for?
Thanks!
In case anyone is reading/following:
In Macro_BakeTextures.mcr, I found this line
element.filenameUnique = false – allow overwrite by auto file name
which seems to be the best description I found so far of what this property is used for.
Eventually, this is used in the function ApplyUpdateFiles() and RTT_methods.MakeBakeElementFileName() to control whether the existing filename is overwritten by an auto-generated name, based on the object name and the bake element name.
I might be missing something, but maybe this is helpful for others wondering why your RTT script isn’t producing the files that you see in the GUI…