twidup
03-28-2003, 03:25 AM
is there a way to search a string array for a set string?
example: I have an array of all the referenced files used in the current scene. I am looking for a specific one to change the name on.
my current idea is to get the array that file -q -r creates, then create a new string with all the array components, then tokenize that by part of the name I am looking for, then tokenize that with a variable I set in the string to seperate the array comp. with.
and then grab the last part of the new array, as that would be the path I am looking for.
is there an easier way that I am missing?
Cheers,
-Todd
example: I have an array of all the referenced files used in the current scene. I am looking for a specific one to change the name on.
my current idea is to get the array that file -q -r creates, then create a new string with all the array components, then tokenize that by part of the name I am looking for, then tokenize that with a variable I set in the string to seperate the array comp. with.
and then grab the last part of the new array, as that would be the path I am looking for.
is there an easier way that I am missing?
Cheers,
-Todd
