Author Topic: submitting a job without GUI  (Read 3228 times)

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
submitting a job without GUI
« on: August 16, 2012, 03:17:30 PM »
HI there:

I am trying to create a submission GUI in Nuke and was wondering if its possible to submit a job from Nuke without calling Qube GUI ..? If so how would you please send me a sample or a doc. to look into ..?

Thanks
/Biju

jburk

  • Administrator
  • *****
  • Posts: 493
Re: submitting a job without GUI
« Reply #1 on: August 16, 2012, 11:34:10 PM »
Are you talking about creating a Nuke-native submission UI?

We can help you create the qube job object with our python API, but the creation of a Nuke UI is outside the scope of this forum.

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
Re: submitting a job without GUI
« Reply #2 on: August 17, 2012, 05:11:13 PM »
Hello Burk:

I can take care of the Nuke UI. From Nuke I will be calling qube_submit_nuke(renderName, executeNodes, executeViews, properties=properties). I think it all boils down to how the properties Dict. is created...?





jburk

  • Administrator
  • *****
  • Posts: 493
Re: submitting a job without GUI
« Reply #3 on: August 20, 2012, 06:33:34 PM »
So a nuke cmdrange job dictionary will look something like:

job = {
    'prototype': 'cmdrange',
    'name': 'my job name',
    'package': {
        'allNodes_Viewer': 'Viewer4,Viewer2,Viewer1',
        'allNodes_Write': 'Write2,Write1,Write3',
        'cmdline': '"/Applications/Nuke6.2v4/Nuke6.2v4.app/Contents/MacOS/Nuke6.2v4" -t -x -X "Write1,Write2,Write3" -- "/Users/jburk/test/nuke/test.nk" QB_FRAME_START,QB_FRAME_END,QB_FRAME_STEP',
        'executable': '"/Applications/Nuke6.2v4/Nuke6.2v4.app/Contents/MacOS/Nuke6.2v4"',
        'executeNodes': 'Write1,Write2,Write3',
        'frameCount': '100',
        'range': '1-100',
        'regex_outputPaths': 'Writing (.*) took [0-9.\-]+ seconds',
        'script': '/Users/jburk/test/nuke/test.nk',
        'simpleCmdType': 'Nuke (cmdline)'
    },
}

job['agenda'] = qb.genframes('1-100')


Only the bold key/values pairs are strictly necessary for the job to be properly constructed, but the others will allow for proper re-submission in the GUI at a later time.