win7 x64
maya 2011, hf3.
batch rendering in mr
for some reason, when my -postRender script calls the system command and passes the command string, nothing happens.
but when I run the system call in the script editor the system call works just fine.
I've checked my syntax, all conditionals and paths report correctly in the log file.
i'v even tried wrapping the system call in an evalDeferred -lp string....still nothing.
the following is a the relevent section of the postRender script:
//record render list filename, include in csb_mM2D_compositeContours() function, write in the $cmd as a var, and save as .jsx
if(!filetest -r $cmdFile)
{
string $userScripts = internalVar -uad;
string $jsPath = ($userScripts + "scripts/csb_tools/scripts/java/csb_mM2D_compositeContours.jsx");
int $fileID = fopen $cmdFile "w";
//fprint $fileID ("#target photoshop \n");
fprint $fileID ("#include \"" + $jsPath + "\" \n\n");
fprint $fileID ("var cmdPath = new String(\"" + $cmd + "\");\n");
fprint $fileID ("csb_mM2D_compositeContours(cmdPath);");
fclose $fileID;
}
print("running csb_compositeContours() \n");
//use system to call photoshop, and the .jsx file just written as a parameter
string $adobePath = ("Photoshop.exe " + $cmdFile);
evalDeferred -lp ("system(\"start " + $adobePath + "\");");