Author Topic: Modifying Submission Script?  (Read 2634 times)


  • Full Member
  • ***
  • Posts: 18
Modifying Submission Script?
« on: March 10, 2011, 03:36:47 AM »
I dunno if this is the right forum for this, but I'm looking to force the submission scripts to have the priority and subjob processes set at a certain number with no option for the submitting user to change the numbers.

I know that I can set the permissions to remove the right to Modify a job, but I'm looking for a way to have the Submit Job to be set to Priority 9999 and Subjob Processes to 30 for all users, on all logins (essentially, I am looking for a way to rewrite the python submission scripts for Maya - but I am not a programmer and don't know what to change)

The jobs would then be modified by me. I have to do this because we are in a classroom setting and we are seeing abuse of the farm. I know that I can set a preset but that still allows a user to change the number from the preset that's given - I want to remove their ability to change those numbers at all.

Wondering if its possible, and if so, how to go about doing it.
- Thanks much


  • Administrator
  • *****
  • Posts: 493
Re: Modifying Submission Script?
« Reply #1 on: March 10, 2011, 11:35:04 PM »
You can edit the which can be found in QubeGUI->File->Open SimpleCmds dirs.

You would edit either the preDialog or the postDialog methods found in that module, and set the values in either one of those.
If you did it in the preDialog, you would set the values and disable the control for the value you wanted to hard-code.

If you did it in the PostDialog, it will override any values that the user enters.

Documentation on the simpleCmd api is available from inside the GUI in the Help menu.