Folder object to string question
Posted: July 18th, 2005, 9:39 pm
Hey Guys,
Another quick question.
Im still working on a script to grab all my renders and shove them in a comp. Im using the file names to dertermine the layer order in the comp (eg character_L1_v01.tif, the L dertemines its order), so im trying to do some basic string functions.
var folders = theFolder.getFiles(); // get an array of the folders in the dir
var myString = (folders[1]); // grab the name of the first one
var x = myString.length;// get the length of characters in the name
All this does is grab the name of the folder in spesified directory, and the all i want to get is the length of the string name of the folder so i can run a loop to check each character for the information i want.
Q: I can't seem to use string.length function with folder objects?! Can i convert a folder object to a string?
Cheers,
Nick Deboar
/Digital Director/
*The People's Republic of Animation
http://www.thepra.com.au
Another quick question.
Im still working on a script to grab all my renders and shove them in a comp. Im using the file names to dertermine the layer order in the comp (eg character_L1_v01.tif, the L dertemines its order), so im trying to do some basic string functions.
var folders = theFolder.getFiles(); // get an array of the folders in the dir
var myString = (folders[1]); // grab the name of the first one
var x = myString.length;// get the length of characters in the name
All this does is grab the name of the folder in spesified directory, and the all i want to get is the length of the string name of the folder so i can run a loop to check each character for the information i want.
Q: I can't seem to use string.length function with folder objects?! Can i convert a folder object to a string?
Cheers,
Nick Deboar
/Digital Director/
*The People's Republic of Animation
http://www.thepra.com.au