Author Topic: Steps for creating a QubeGUI submission dialog  (Read 10757 times)

Scot Brew

  • Hero Member
  • *****
  • Posts: 272
    • PipelineFX
Steps for creating a QubeGUI submission dialog
« on: May 18, 2007, 12:52:26 AM »
A recent question came up about the steps to create a custom submission dialog for the QubeGUI.  Below are the recommended steps to get it up and running.

Developing a new jobtype
1.   Create a submit_*.py script
   ⁃   Tip: Use as reference the existing submit_*.py scripts, like submit_cmdline.py.
2.   Update the qube.py script  (adds a submit menu item)
   ⁃   Tip: search for use of "maya"
   ⁃   import <your submit script>
   ⁃   add a menu item for it and bind a callback to it
   ⁃   create a callback for the menu item
3.   Update the jobList.py (adds ability to rt-click and resubmit)
   ⁃   Tip: search for use of "maya"
   ⁃   import <your submit script>
   ⁃   register the jobs in the "registeredJobs" variable
4.   Testing
   ⁃   The submit script should be able to be run directly from the commandline like "python <your submit script>.py"
   ⁃   Launch QubeGUI and submit your job from under the Submit menu
   ⁃   Resubmit your job by rt-clicking on it in the JobList panel

Scot Brew

  • Hero Member
  • *****
  • Posts: 272
    • PipelineFX
Re: Steps for creating a QubeGUI submission dialog
« Reply #1 on: May 18, 2007, 01:00:43 AM »
When resubmitting a job, if you get the message "No submit dialog registered for job type", then you will need to register your jobtype and submission dialog in the jobList.py. 

See the previous posting for details.

Scot Brew

  • Hero Member
  • *****
  • Posts: 272
    • PipelineFX
Re: Steps for creating a QubeGUI submission dialog
« Reply #2 on: July 14, 2009, 12:28:55 AM »
NOTE: This posting applies to QubeGUI 5.3 and earlier.  See the SimpleCmd Developer Guide under the QubeGUI Help menu for easily adding submission interfaces to more recent versions of Qube.