8.0.2.1 Cinema 4D Submit Error

Hello,
Updated to the latest 8.0.2.1 to see if some of the C4D bugs had been ironed out and have a new error that’s stopping everything from running.
Any help would be appreciated.

Thanks!

=======================================================
Error
=======================================================
Error: UnboundLocalError : local variable 'fileprefix' referenced before assignment (Python.Runtime.PythonException)
  File "C:\Users\user\AppData\Local\Thinkbox\Deadline8\slave\morty\plugins\575587fea30dec45c0955d3e\Cinema4DBatch.py", line 61, in RenderTasks
    self.MyCinema4DController.RenderTasks()
  File "C:\Users\user\AppData\Local\Thinkbox\Deadline8\slave\morty\plugins\575587fea30dec45c0955d3e\Cinema4DBatch.py", line 298, in RenderTasks
    outputMultiFilePath = Path.Combine( filepath, fileprefix )

   at Deadline.Plugins.PluginWrapper.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel)

=======================================================
Type
=======================================================
RenderPluginException

=======================================================
Stack Trace
=======================================================
   at Deadline.Plugins.SandboxedPlugin.a(DeadlineMessage A_0)
   at Deadline.Plugins.SandboxedPlugin.RenderTask(String taskId, Int32 startFrame, Int32 endFrame)
   at Deadline.Slaves.SlaveRenderThread.a(TaskLogWriter A_0)

Full log attached
Job_2016-06-06.txt (10.7 KB)

Hey Josh,

Here is an updated script. This was fixed in the non-batch plugin but appears to have been missed in the main plugin.
Cinema4DBatch.zip (6.08 KB)

Thanks Grant,
Assuming this goes in to “REPOSITORY\plugins\Cinema4DBatch” to replace the existing file?

yep that is exactly where it goes.