Author Topic: TIP: Options for modifying the submission parameter defaults  (Read 3931 times)

Scot Brew

  • Hero Member
  • *****
  • Posts: 272
    • PipelineFX
There are a few ways to modify the submission parameter defaults.

1) Modify each simplecmd submission .py script and add a line to the cmdjob creation.

   cmdjob.properties['mailaddress'] = 'abc@mycompany.com'

Code: [Select]
cmdjob = SimpleCmd('Example Echo over frames', hasRange=True, canChunk=True, help='basic echo test over frame range')
cmdjob.command = 'echo %(message)s'
cmdjob.add_optionGroup('Main options', collapsed=False)
cmdjob.add_option( 'message'    , 'string'  , 'Message to echo',
                  default="FRAME MESSAGE: start QB_FRAME_START, end QB_FRAME_END, step QB_FRAME_STEP", required=True)
# Specify job property defaults (optional)
cmdjob.properties['priority'] = 100
cmdjob.properties['cpus']     = 3
cmdjob.properties['mailaddress'] = 'abc@mycompany.com'

See the Help->SimpleCmd Developer Guide example "Create a SimpleCmd and specify some default properties" for more details.  Also see the Forum Post "TIP: Centralizing Qube configs, jobtypes, logs, & customizations (large farms)" (http://support.pipelinefx.com/smf/index.php?topic=697.0)

2) Have each user for each submission dialog specify the email address they want to send to by default.  Then click on the "Set Defaults" button.  This will store the values in the user's preferences file.

3) Create a studio prefs file with the "Set Defaults" method above.  Save it with "File->Save Preference Defaults...".  Have each user point in their own "Studio Default Prefs" in their preferences (Preferences...) to that studio-wide preferences file.  Then one can modify that file at any time and update the entire studio's default prefs.