[size=150]Change the Output Folder for All Integrated Scripts[/size]
- Open the Deadline Monitor.
- Enable Tools menu -> Super User Mode
- Choose Tools menu -> Configure Event Plugins… In the “Configure Event Plugins” dialog that appears:
[list=1][*]Choose “Draft” in the left-hand column.
- Change the “Draft Output Folder” to the desired relative path. In your case, you’d change it to something like “…/…/mySubfolder”, without the quotes.
[/*:m][/list:o]
[size=150]Change the Output Folder for One Integrated Script[/size]
The Python path manipulation functions are in the os.path module, so you’ll need to “import path” or “import os.path” at the top of your script to access the functions.
You can find a reference to the os.path functions here: http://docs.python.org/2/library/os.path.html
I think this will do what you want in the script you sent us. Find this line:
(outBase, outExt)= os.path.splitext( params['outFile'] )
and replace it with:[code]# Say params[‘outFile’] is “\path\to\my\filename.mov”. This will set outDir = “\path\to\my”, and outFilename = “filename.mov”.
(outDir, outFilename) = os.path.split( params[‘outFile’] )
Set outDir up two directories. os.pardir is the “parent directory”.
outDir = os.path.join( os.path.join( outDir, os.pardir ), os.pardir )
Split “filename.mov” into outStem = “filename” and outExt = “.mov”
(outStem, outExt) = os.path.splitext( outFilename )
Set outBase to “\path\to\my…\filename”, as is needed by your script
outBase = os.path.join( outDir, outStem )[/code]
If you want to place the output up two directories and inside a subfolder:[code]import errno
def ensure_dir_exists( dir ):
try:
os.makedirs( dir )
except OSError as exception:
if exception.errno != errno.EEXIST:
raise
Say params[‘outFile’] is “\path\to\my\filename.mov”. This will set outDir = “\path\to\my”, and outFilename = “filename.mov”.
(outDir, outFilename) = os.path.split( params[‘outFile’] )
Set outDir up two directories. os.pardir is the “parent directory”.
outDir = os.path.join( os.path.join( outDir, os.pardir ), os.pardir )
Reset outDir to a subfolder named “mySubfolder” inside the current outDir
outDir = os.path.join( outDir, “mySubfolder” )
Get the canonical path of outDir. This will change outDir from “\path\to\my…\mySubfolder” to “\path\mySubfolder”.
outDir = os.path.realpath( outDir )
Make sure the outDir exists
ensure_dir_exists( outDir )
Split “filename.mov” into outStem = “filename” and outExt = “.mov”
(outStem, outExt) = os.path.splitext( outFilename )
Set outBase to “\path\mySubfolder\filename”, as is needed by your script
outBase = os.path.join( outDir, outStem )[/code]
Edit: Added “Change the Output Folder for All Integrated Scripts”.