AWS Thinkbox Discussion Forums

Draft's Error

While testing Draft with Deadline + Shotgun we came across this issue.
The description.

  1. Deadline finishes Maya rendering job (started from within Maya).
  2. The rendered image sequence is passed to Draft for quicktime generation.
  3. As soon as Draft is started the error message comes on. Draft runs in an infinite loop generating the
    exactly same Error message again and again without ever creating the output quicktime.
    Here is the Error message:

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

Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

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

0: Task timeout is disabled.
0: Loaded job: nebula_v01 [DRAFT] (999_050_999_0b50ff78)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”
username=“User: theUser” entity=“Entity: some_Task” version=“Version: 782” width=320 height=240 frameList=1-3 startFrame=1
endFrame=3 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v02.####.iff”
outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v02…mov” dependentJobID=999_050_999_1a376fd9

0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”, line 3, in
0: STDOUT: from System.Collections.Specialized import *
0: STDOUT: ImportError: No module named System.Collections.Specialized
0: INFO: Process exit code: 1

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v01 [DRAFT] (999_050_999_2780f285)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”
username=“User: theUser” entity=“Entity: some_Task_clickable” version=“Version: 900” width=320 height=240 frameList=1-3
startFrame=1 endFrame=3 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v03.####.iff”
outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v03…mov” dependentJobID=999_050_999_28bc662f
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”, line 3, in
0: STDOUT: from System.Collections.Specialized import *
0: STDOUT: ImportError: No module named System.Collections.Specialized
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1.
Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1.
Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

From the looks of the error output, it seems like you’re trying to use the Monitor’s Draft Submission Script as a Draft template, which unfortunately won’t do much more than give you that error. In order to use Draft, you’ll have to write Python scripts to use as templates. All the available functions that you’ll need to write a template are described in this post here:
viewtopic.php?f=85&t=5680#p23426

There are also sample templates in the original post of that thread, which would be a good starting point if you’re unsure of where to start.

Cheers,

  • Jon

Thanks for the feedback!
Here is the Error message generated by Slave Machine when [size=150]Watermark_Demo_Template.py[/size] is being used:

0: INFO: Ending Maya Job
0: INFO: Waiting for Maya to shut down
0: INFO: Maya has shut down

Scheduler Thread - Synchronizing job files
Scheduler Thread - Synchronization time for job files: 2 ms
Scheduler Thread - Synchronizing plugin files
Scheduler Thread - Synchronization time for plugin files: 4 ms

Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v05 [DRAFT] (999_050_999_0aac0b0d)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Watermark_Demo_Template.py”
username="User: " entity="Entity: " version="Version: " width=320 height=240 frameList=1-2 startFrame=1 endFrame=2
inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v05.####.iff”
outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v05…mov” dependentJobID=999_050_999_2a93940e

0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Watermark_Demo_Template.py”, line 16, in
0: STDOUT: params = ParseCommandLine( expectedTypes, sys.argv )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 142, in ParseCommandLine
0: STDOUT: Command line args:
0: STDOUT: username=User:
0: STDOUT: entity=Entity:
0: STDOUT: version=Version:
0: STDOUT: width=320
0: STDOUT: height=240
0: STDOUT: frameList=1-2
0: STDOUT: startFrame=1
0: STDOUT: endFrame=2
0: STDOUT: inFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v05.####.iff
0: STDOUT: outFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v05…mov
0: STDOUT: return ParseParams( expected, params )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 95, in ParseParams
0: STDOUT: print('Parameter ‘’ + key + ‘’ does not match expected: ’ + params[key] + ’ != ’ + expected[key][type])
0: STDOUT: TypeError: string indices must be integers, not str
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Draft Error when [size=150]Resizable_Demo_Template.py[/size] is used.

Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v06 [DRAFT] (999_050_999_4ff9ea16)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Resizable_Demo_Template.py” username=“User: theUser” entity=“Entity: some_Task_clickable” version=“Version: 902” width=320 height=240 frameList=1-2 startFrame=1 endFrame=2 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v05.####.iff” outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v05…mov” dependentJobID=999_050_999_3d07676a
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Resizable_Demo_Template.py”, line 24, in
0: STDOUT: params = ParseCommandLine( params, sys.argv )
0: STDOUT: NameError: name ‘params’ is not defined
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Draft Error when [size=150]Resizable_Demo_Template2.py[/size] is used.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v06 [DRAFT] (999_050_999_7c941474)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Resizable_Demo_Template2.py” username=“User: theUser” entity=“Entity: Resizable_Demo_Template2” version=“Version: 903” width=320 height=240 frameList=1-2 startFrame=1 endFrame=2 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v05.####.iff” outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v05…mov” dependentJobID=999_050_999_11f47d21
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Command line args:
0: STDOUT: username=User: theUser
0: STDOUT: entity=Entity: Resizable_Demo_Template2
0: STDOUT: version=Version: 903
0: STDOUT: width=320
0: STDOUT: height=240
0: STDOUT: frameList=1-2
0: STDOUT: startFrame=1
0: STDOUT: endFrame=2
0: STDOUT: inFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v05.####.iff
0: STDOUT: outFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v05…mov
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Resizable_Demo_Template2.py”, line 18, in
0: STDOUT: params = ParseCommandLine( expectedTypes, sys.argv )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 142, in ParseCommandLine
0: STDOUT: return ParseParams( expected, params )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 95, in ParseParams
0: STDOUT: print('Parameter ‘’ + key + ‘’ does not match expected: ’ + params[key] + ’ != ’ + expected[key][type])
0: STDOUT: TypeError: string indices must be integers, not str
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Error when using C:\Program Files (x86)\Thinkbox\DeadlineRepository\events\Draft[b][size=150]Draft.py[/size][/b] as a template

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
---- October 27 2011 – 01:07 PM ----
Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v08 [DRAFT] (999_050_999_51214e0a)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Draft.py” username=“User: theUser” entity=“Entity: some_Task_clickable” version=“Version: 952” width=320 height=240 frameList=1-2 startFrame=1 endFrame=2 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v07.####.iff” outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v07…mov” dependentJobID=999_050_999_1c50c3b0
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Draft.py”, line 5, in
0: STDOUT: from System.Diagnostics import *
0: STDOUT: ImportError: No module named System.Diagnostics
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

So it looks like you’re using the first (outdated) build of Draft, or at least still have the first version of the DraftParamParser utility script kicking around. You’ll have to override your current Draft folder with the build found here:
viewtopic.php?f=85&t=6327

Alternatively, you could setup a new folder for the above Draft build (could be on a network location, even), and update the Draft install path in the Draft Plugin Configuration to point to the new location. This can be done in the Deadline Monitor under Tools > Configure Plugins > Draft, as a Super User.

The outdated version of Draft is why 2/3 sample templates don’t work. It turns out I made an error when updating the Resizable_Demo.py one for the new version, and that one would break regardless :frowning:. I’ll update it to fix this.

“C:\Program Files (x86)\Thinkbox\DeadlineRepository\events\Draft\Draft.py” is not a Draft template (it’s the Draft Event Plugin script), and therefore will always give this error.

Hope this helps,

  • Jon

Deleted all Draft. Installed new version 3 from the link you supplied.
Restarted Maya. Using Watermark_Demp_Template.py.
This time the Error message is a bit different:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v10 [DRAFT] (999_050_999_2427d7d2)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Watermark_Demo_Template.py” username=“User: theUser” entity=“Entity: some_Task_clickable” version=“Version: 930” width=320 height=240 frameList=1-2 startFrame=1 endFrame=2 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v10.####.iff” outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v10…mov” dependentJobID=999_050_999_304a01b1
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Checking for license at @rack2
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/Watermark_Demo_Template.py”, line 16, in
0: STDOUT: params = ParseCommandLine( expectedTypes, sys.argv )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 196, in ParseCommandLine
0: STDOUT: Command line args:
0: STDOUT: username=User: theUser
0: STDOUT: entity=Entity: some_Task_clickable
0: STDOUT: version=Version: 930
0: STDOUT: width=320
0: STDOUT: height=240
0: STDOUT: frameList=1-2
0: STDOUT: startFrame=1
0: STDOUT: endFrame=2
0: STDOUT: inFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v10.####.iff
0: STDOUT: outFile=C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v10…mov
0: STDOUT: return ParseParams( expected, params )
0: STDOUT: File “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\DraftParamParser.py”, line 119, in ParseParams
0: STDOUT: raise StandardError( “ERROR: Expected parameter ‘%s’ was not found.” % key )
0: STDOUT: StandardError: ERROR: Expected parameter ‘outfile’ was not found.
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The Error comes from using DraftSubmission.py as well:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Constructor: Draft
0: Task timeout is disabled.
0: Loaded job: nebula_v10 [DRAFT] (999_050_999_1dd29dc6)
0: INFO: StartJob: initializing script plugin Draft
0: INFO: Found Draft python module at: ‘C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit\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/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py” username=“User: theUser” entity=“Entity: some_Task_clickable” version=“Version: 931” width=320 height=240 frameList=1-2 startFrame=1 endFrame=2 inFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v10.####.iff” outFile=“C:\Users\theUser\Documents\maya\projects\fluid_render\images\Draft\nebula_v10…mov” dependentJobID=999_050_999_0d050ee7
0: INFO: Startup Directory: “C:\Program Files\Thinkbox\Deadline\bin\Draft\64bit”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: Traceback (most recent call last):
0: STDOUT: File “C:/Users/theUser/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”, line 3, in
0: STDOUT: from System.Collections.Specialized import *
0: STDOUT: ImportError: No module named System.Collections.Specialized
0: INFO: Process exit code: 1
Scheduler Thread - Render Thread 0 threw an error:
Scheduler Thread - Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)

Exception Details
RenderPluginException – Exception during render: An error occurred in RenderTasks(): Error in CheckExitCode(): Renderer returned non-zero error code, 1. Check the log for more information.
at Deadline.Plugins.ScriptPlugin.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void RenderTask(System.String, Int32, Int32)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.Plugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Here is the message from Monitor:

0: STDOUT: File “C:/Users/lookfx/AppData/Local/Thinkbox/Deadline/slave/Rack2/jobsData/DraftSubmission.py”, line 3, in
0: STDOUT: from System.Collections.Specialized import *
0: STDOUT: ImportError: No module named System.Collections.Specialized
0: INFO: Process exit code: 1

So it looks like I also overlooked another update to Draft when I was fixing up those sample templates. Here are the updated versions:
Draft Templates.zip (4.73 KB)

The DraftSubmission.py file still won’t work though, since that’s just the Submission script. Not all .py Python files are Draft templates :slight_smile:

You know what.
It is working! But hold on. We need to tune this up. Let me see what doesn’t work yet here.

It is working great! The slated quicktime is placed in Shotgun’s “Uploaded Movie” field.
But what if I want to set this generated by Draft quicktime movie into the Shotgun’s “Path to Movie” field (in addition to “Uploaded Movie”. Since it is where the RV player is looking for it…

Here is a possible scenario for the Deadline/Draft to Shotgun submission:

  1. Deadline finishes the rendering job. It creates a Shotgun’s version. Deadline fills the Shotgun’s Version’s “Path to Frames” field with the entire file-path-to-the-image-sequence with the RV friendly frame padding syntax: fileName.####.JPG).
    Example:
    C:\Users\theUser\Documents\maya\projects\fluid_render\images\nebula_v10.####.png

  2. After that step is completed Deadline without waiting for any user input precedes by sending the just-rendered-image-sequence to Draft for a low-resolution-compressed-slatted-trimmed-who-knows-what-else quicktime movie generation.

  3. When Draft completes a quicktime movie generation it places its links in two fields of the same Shotgun’s Version Deadline created earlier (step 1).
    Those fields are:
    “Uploaded Movie” (this is what Draft is doing now).
    “Path to Movie” (that is what we want it to be places since RV uses it for a default playback).

It would be nice if the options of where and what Draft and Deadline is using would be under the user’s control.
You have mention that Deadline Monitor lets the user to do Shotguns entries customizations. How can we do it working with Draft?

We’re not currently filling in the Path To Movie in Shotgun when the Draft job completes, but it would be pretty simple for us to do alongside the uploading of the actual video; I could get this in for the next beta build.

Cheers,

  • Jon

It would be great if many if not all of the settings or features of the software could be turned on and off or changed or customized any possible way.
Ability to control what software does is invaluable. We don’t want Draft to always upload or associate the data with some predefined baked-in fields in Shotgun.
We want to be able to control what data and what field Draft is associating the data with.
Let’s say I create a custom data field in Shotgun. Now I want Draft to link the generated movie with that custom field. We would need to be able to control as much as possible. Give us some flexibility even if it would require the script tweaking.

“\repository5\events\Draft\Draft.py”

Privacy | Site terms | Cookie preferences