chuckie7413
03-26-2009, 03:31 PM
In my script I want to print the render.exe path into a .bat file.
At the moment the script line looks like this:
print ("Render -r mi -binary 0 -cam " + $camera + " " + $selectedScenes[$i] + "\r");
This works fine and prints the correct text into my file however I need to print the full path of the Render executable. In order for it to render it needs to look like this at the start:
"C:\Program Files\Autodesk\Maya2008\bin\Render.exe"
However when I try and insert this into the script. eg
print (""C:\Program Files\Autodesk\Maya2008\bin\Render.exe" -r mi -binary 0 -cam " + $camera + " " + $selectedScenes[$i] + "\r");
I get a syntax error. It doesn't seem to like the two "" at the start.
How can i fix this.
Thanks
Rich
At the moment the script line looks like this:
print ("Render -r mi -binary 0 -cam " + $camera + " " + $selectedScenes[$i] + "\r");
This works fine and prints the correct text into my file however I need to print the full path of the Render executable. In order for it to render it needs to look like this at the start:
"C:\Program Files\Autodesk\Maya2008\bin\Render.exe"
However when I try and insert this into the script. eg
print (""C:\Program Files\Autodesk\Maya2008\bin\Render.exe" -r mi -binary 0 -cam " + $camera + " " + $selectedScenes[$i] + "\r");
I get a syntax error. It doesn't seem to like the two "" at the start.
How can i fix this.
Thanks
Rich
