[Closed] Help, asset file management
I use a script to modify file’s path in asset tracking.
ATSOps can only set path of the file (ATSOps.SetPath), can’t change the filename.
I can use BitmapTexture to change filename, but it’s only for bitmap.
so, how can I change filename of any kind files(ies, vrmesh, hdr, pts. etc.) in asset tracking?
for now, I meet bitmaps, hdr, pts, pc2, vrmesh and ies.
I look at FilePathFinder Pro, it can set file’s path and name.
but it’s not enough for me.
I must change filename according to some rules, copy it to a new path and then set the filename to new path and new name.
It’s all done by a script without interact.
I don’t know what method that FilePathFinder uses. any idea?
Select the asset to be retargeted and use ATSOps.RetargetSelection, from the Maxscript help:
<bool>ATSOps.RetargetSelection <filename>NewPath CreateOutputFolder :<bool>
CreateOutputFolder default value: false
Retargets a single selected asset to a new path and file name.
The newPath argument must specify both the path and the file name.
If the optional CreateOutputFolder: keyword parameter is supplied and is true, the new path will be created if it does not exist.
-Eric
it works. thank u. I didn’t notice that function before, I should learn it more carefule.