AWS Thinkbox Discussion Forums

draft demo video question

hi jon,

just watched your cool draft demo video on your website:

thinkboxsoftware.com/news/20 … emo-b.html

I saw a cool feature which i didn´t kow existed: you can submit a draft job from the version page in shotgun…? That is a geat tool as it would mean our production team can trigger the creation of a low rez quicktime if they need it, very handy indeed…

Now the question: how do i set it up?

Thanks,

Timor

Currently this is only available on Windows boxes; I still have to look into getting it working for Mac/Linux (but it should be doable). You’ll need to run the Monitor as Administrator (windows administrator that is), and go to Scripts -> Install Integrated Submission Scripts. From there, click the ‘Draft (Shotgun)’ button and hit Install (if it’s not there, make sure you’re on the new RC1 version of Deadline).

That should theoretically take care of everything; it will add a “Submit Draft Job” right-click option to Versions in Shotgun, which should pop up a Draft submitter.

Cheers,

  • Jon

Would be great if you managed to make this work on OSX/Linux as well!

Cheers
Bonsak

Hi Jon,

i just tested the draft plugin submission script and it gave me an error “…\clientSetup\Draft\DraftShotgunAction.py” could not be found…

So i copied both files to where they belong manually and the menu in shotgun appeared.

If i then select a version and click on the “submit draft job”, a menu appears, asking me which app i want to open it with. It suggests
“python.exe” “C:Program…DraftShotgunHandler.py” "%1 > “C:\Test\test.out”

After clicking OK, Shotgun hangs…(and the job never arrives at the monitor).

Any ideas how to make it work?

Thanks,
Timor
draft_SG_plugin_error.jpg

Hey Timor,

I’m guessing it’s probably because you don’t have a Python install in your PATH environment. That’s my bad, I should just be explicitly pointing to the Deadline install of Python manually anyways. I’ll modify the script to fix this.

Cheers,

  • Jon

Fixed the script to point to Deadline’s Python, and fixed the typo that prevented the script files from getting copied over properly to begin with.

Just extract the updated script to your repository under the scripts/General/SubmissionScriptAutoDeploy/Draft folder and run the auto-deploy script from the Monitor again. You might have to restart your machine to get it working.

Cheers,

  • Jon

EDIT: Oops. forgot to upload the actual file…
DraftWin.zip (1.7 KB)

Hi Jon,

it works now, the submission script opens and fills out the frame sequence automaticaly. It doesn´t fill out the output though, which is strange/inconvenient as it does it when i go the normal way though scripts.

Unfortunately i cannot submit because it gives me a python error: "TypeError: cannot concatenate “str” and “int” objects (Python.Runtime.PythonException).
Attached you´ll find the screenshot with the error…

Hope you know whats wrong with this.

Cheers,
Timor

Hey Timor,

Here’s a fixed-up version of the Draft submitter. It should also be filling out the Output field now, based on the input it pulled from Shotgun. Just extract it to your repository into the scripts/Submission/DraftSubmission folder, and you should be good to go.

Cheers,

it works now…thanks!

Hi Jon,

somehow draft is not working anymore since the update to b4:

=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, -1073741819, which represents a Memory Access Violation. There may not be enough memory, or the memory has become corrupt.
bei Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: Shotgun Draft Job (00b_050_999_263a5614)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Users\OM17\AppData\Local\Thinkbox\Deadline\slave\Om17\Draft\Draft.pyd’
0: INFO: About: Draft Plugin for Deadline
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting…
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe’

The render machines (win7 64bit) get a popup saying that python.exe has stopped working.

…and i was so keen to test H264 :frowning: !

Timor
draft_py_error.jpg

Hey Timor, I wasn’t able to reproduce this.

Could you post the Draft Script you are using that’s causing this crash? And also, could you post the full slave log of that error? The one in your last post seems to have been truncated :frowning:

Cheers,

  • Jon

Here the full log and attached the draft script (which was working before)

=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, -1073741819, which represents a Memory Access Violation. There may not be enough memory, or the memory has become corrupt.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: 100_welcomeloop_30.aep - 100_welcomeloop_Kombi [DRAFT] (00b_050_999_575a9f0c)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Users\Rk10\AppData\Local\Thinkbox\Deadline\slave\Rk10\Draft\Draft.pyd’
0: INFO: About: Draft Plugin for Deadline
0: Plugin rendering frame(s): 0
0: INFO: Draft job starting…
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe’
0: INFO: Render Executable: “C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\python.exe”
0: INFO: Render Argument: -u “C:/Users/Rk10/AppData/Local/Thinkbox/Deadline/slave/Rk10/jobsData/draft_mjpeg_scale1280p_changed.py” username=“xxx.xxx” entity=“create welcomeloop” version=“V4” frameList=123-749 startFrame=123 endFrame=749 inFile=“V:\xxxxx\100_welcomeloop_Kombi_#####.jpg” outFile=“V:\xxxx\Draft\100_welcomeloop_Kombi_.mov” deadlineJobID=006_050_999_16de9e0e
0: INFO: Startup Directory: “C:\Users\Rk10\AppData\Local\Thinkbox\Deadline\slave\Rk10\Draft”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: INFO: Process exit code: -1073741819
draft_mjpeg_scale1280p_changed.zip (2.28 KB)

Additional Info to the slave:

The machine that logged the error (rk10) only has 4 gigs of ram as it was meant to be used only as a dedicated draft machine. I tried to run it on a machine with 24 gigs though and still got the same error, so i don´t think it is an issue with the machine not having enough memory…

Timor

Hmm, that Draft script works fine for me, so that’s definitely not the problem.

My guess is that Draft is trying to link to the wrong (old) ffmpeg dll’s. I’d recommend trying the following and see if it fixes this problem:

  1. Remove the Draft folder from the repository (\repo\path\Draft)
  2. First, remove the Draft folder in your slave’s folder (in Windows this is at %LOCALAPPDATA%\Thinkbox\Deadline\slave[slave name])
  3. Remove any old Draft installs from the slave (such as in C:\Program Files\Thinkbox\Deadline\bin\Draft)
  4. Re-install Draft to the Repository (\repo\path\Draft)

If that still doesn’t work, you might have to run Dependency Walker on Draft.so to figure out where exactly the problem lies.

Hi Jon,

i did everything you told me and now i get a license error, telling me draft failed to launch because of it.

I though when we got the new license for RC2 (with the new vendor daemon) it included draft…?

Thanks,

Timor

Privacy | Site terms | Cookie preferences