View Full Version : replace references with updated versions
06-20-2007, 11:42 PM
Hi...I'm trying to figure out a way to replace current references with updated versions of the file. For example, the texture artists created a file with a "_tex" suffix, and I want to load the lighter's referenced version that has the "_lit" suffix, replacing the texturer's one into my animation file. Both files live on the same folder and directory path.
I'd like the script to recurse through the folder and pick up only the "_lit" files.
Any help will be greatly appreciated. Thanks.
06-21-2007, 02:55 AM
string $files = `getFileList -folder "C:/temp/" -fs "*_lit*"`;
This will get a list of folders in C:\temp with "_lit" anyware in its name. eg: "ep###_sc###_sh###_lit_v##.mb
Alternatively you could be more specific if _lit is the last part of the file name:
string $files = `getFileList -folder "C:/temp/" -fs "*_lit.m?"`;
This will return only files ending in "_lit.ma" or "_lit.mb"
Hope that helps
06-21-2007, 12:56 PM
Thanks for the suggestion. It definitely opens a new direction. I'll see how to combine it with what I currently have.
06-21-2007, 12:57 PM
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.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.