I need some help: in our pipeline we are submiting a commandscript job to deadline, that is actually calling mayabatch, and via a custom melscript builds and saves a scene with referencing all the assets that needed for that. After saving the scene, it should submit automatically a new mayabatch render job (from the melscript, that part similar to the maya submission script). I’ve been trying to do that for days now, and no succes: if I’m using safeDeadlineCommand, it just doesn’t get a submitresult, and no job submitted. When I’m using deadlinecommand.exe, it gives: “The syntax of the command is incorrect.” and no job submitted.
The strange thing if I run the command from commandline, it submits the job without any error.
Example command: “c:/Program Files/Thinkbox/Deadline/bin/deadlinecommand.exe” c:/Users/render/AppData/Local/Thinkbox/Deadline/temp/maya_deadline_info.job c:/Users/render/AppData/Local/Thinkbox/Deadline/temp/maya_deadline_job.job w:/main/Projects/xyzx/proj_040.mb
In mayascript it runs with: system($command)
What could be the problem? Can I get somehow further explanation for that error message?
finally I managed to make it working, though I still don’t know what was the problem. I tried several methods. First using safeDeadlineCommand, then calling deadlinecommand with system:
None of these worked. I tried with all kinds of quotes, hard-coding the paths etc. because I suspect that submission command (some stupid syntax bug) might be the problem. No luck. The job and info files are ok, because sending from commandline submits the job.
Now I’m using this python method :
string $submissionCommand = ("['c:/Program Files/Thinkbox/Deadline/bin/deadlinecommand.exe', '" + $submitFilename + "', '" + $jobFilename + "', '" + $sceneFilePath + "']");
python ("import subprocess");
string $submitResult = python("subprocess.call(" + $submissionCommand + ")");
Although it’s working I would prefer the mel command, because I get the jobid back that way. If you have an idea what went wrong please let me know.
Thanks! I noticed in your ‘system’ call that you’re not placing quotes around the submit, job, and scene file paths. You might also need to ensure that you’re using ‘/’ as your path separator in those paths too. We have a CheckSlashes function in our maya submitter that takes care of this.