PDA

View Full Version : Help, asset file management


lwbsyz
07-21-2011, 02:51 AM
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?

denisT
07-21-2011, 04:01 AM
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?

what is your guess? sift for any...

lwbsyz
07-21-2011, 04:49 AM
what is your guess? sift for any...
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?

PiXeL_MoNKeY
07-21-2011, 03:48 PM
Select the asset to be retargeted and use ATSOps.RetargetSelection, from the Maxscript help (http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-F203ABBC-C3DF-4406-A449-CE6EDC011F5-553.htm):<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

lwbsyz
07-25-2011, 06:37 AM
Select the asset to be retargeted and use ATSOps.RetargetSelection, from the Maxscript help (http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/files/GUID-F203ABBC-C3DF-4406-A449-CE6EDC011F5-553.htm):-Eric

it works. thank u. I didn't notice that function before, I should learn it more carefule.

CGTalk Moderation
07-25-2011, 06:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.