check if render output file exsits
Posted: July 27th, 2011, 6:27 am
hey there,
i allready tried to search in this forum, but my all my search-phrases was filtered out by the search itself (exsit, file, output,...)
so, the problem:
i have a render script for AE and i set the render output path and file by this script. but at the moment i dont have a chance to check if the file i set by script is allready in the output folder. here is a part of the script:
this script always return false, the file does not exsits, so to speak. in that renderFilePath var is the path and the filename given, as shown in the code above.
err... and by the way, the file exsits and is not corrupt. i've checked that a thousand times.
thx in advanced.
Norweschendir
i allready tried to search in this forum, but my all my search-phrases was filtered out by the search itself (exsit, file, output,...)
so, the problem:
i have a render script for AE and i set the render output path and file by this script. but at the moment i dont have a chance to check if the file i set by script is allready in the output folder. here is a part of the script:
Code: Select all
var renderFilePath = "D:\06_AE_Render\073_Preview_20110727.mov"
var newFile = new File(renderFilePath);
if (newFile.exsits)
{
// do something if file exsits...
} else {
// do something else if file does not exsits...
}
err... and by the way, the file exsits and is not corrupt. i've checked that a thousand times.
thx in advanced.
Norweschendir