Is there a way to define the default directory that opens when browsing for settings files? Specifically, QuickTime settings files. I am trying to make a collection of settings that users can use to generate QT’s after rendering. Hoping it can be something stored in the repository so I don’t have to go around to every users workstation to set it. Of course, the next logical question would be for Draft as well.
Don’t know about 7.2 but in 6.2 there is no repository paths for the templates as far as I know. What we’ve done is modify the submission script to automatically get all the templates we have pre made in our template library folder and display them as drop down menu in the draft submission. I assume the same would work for quicktime submission.
Here are snippets from our draft submission
[code]
def main( *args ):
global scriptDialog
global settings
templatePth = “YOUR TEMPLATE LIBRARY FOLDER PATH HERE”
templates = []
names = [name for name in os.listdir(templatePth)
if os.path.isfile(os.path.join(templatePth, name))]
for i in names:
if “.py” in i:
templates.append(i)[/code]
scriptDialog.AddComboControl( "TemplateBox", "ComboControl", "", ( templates ), dialogWidth - labelWidth - 24 , -1 )
#scriptDialog.AddSelectionControl( "ScriptBox", "FileBrowserControl", "", "Draft Scripts (*.py);;All Files (*)", tabWidth - labelWidth - 24, -1 ) Old template retrieval functionality
Submission part
def SubmitButtonPressed( *args ):
global scriptDialog
global job
templatePth = "YOUR TEMPLATE LIBRARY FOLDER PATH HERE"
# Check if Draft files exist.
sceneFile = ( templatePth + scriptDialog.GetValue("TemplateBox"))
#write out the params to the file
writer.WriteLine( "scriptFile=%s" % (templatePth + scriptDialog.GetValue( "TemplateBox" )) )