Render task exception: maxscript file doesn't exist

Here’s another little bugger.

I’ve just submitted a job via the integrated SMTD from 3ds Max 2011 and I included in the PostLoad textbox this path to my post-load script: \rammstein\LiveSync\scripts\repathAssets_render.ms
The script exists and works, I tried that numerous times via the Monitor submitter (which I use more frequently).

However, when submitted via the SMTD, I got this error from the job:

RenderTask: Unexpected exception (Exception caught in 3ds max: mxs::file_in() - Tried to execute a maxscript file which doesn't exist: "C:/Users/loocas/AppData/Local/Thinkbox/Deadline/slave/Vfx01/jobsData/repathAssets_render.ms"

And sure enough, the script really isn’t there.

What am I doing wrong this time? :slight_smile: I’m submitting a tiles rendering job and using the re-path paths method (so I’m not copying anything over to the repository, all is already there).

Here’s an excerpt from the log:

[code]2012-07-30 16:31:26: 0: INFO: Executing script: C:\Users\loocas\AppData\Local\Thinkbox\Deadline\slave\Vfx01\jobsData\repathAssets_render.ms
2012-07-30 16:31:26: 0: An exception occurred: An error occurred in StartJob(): RenderTask: Unexpected exception (Exception caught in 3ds max: mxs::file_in() - Tried to execute a maxscript file which doesn’t exist: “C:/Users/loocas/AppData/Local/Thinkbox/Deadline/slave/Vfx01/jobsData/repathAssets_render.ms”
2012/07/30 16:31:23 INF: Loaded //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
2012/07/30 16:31:23 WRN: Gamma Correction is Being Enabled
2012/07/30 16:31:23 INF: Job: //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
) (Deadline.Plugins.RenderPluginException)
2012-07-30 16:31:26: 0: Unloading plugin: 3dsmax
2012-07-30 16:31:32: Scheduler Thread - Render Thread 0 threw an error:
2012-07-30 16:31:32: Scheduler Thread - An error occurred in StartJob(): RenderTask: Unexpected exception (Exception caught in 3ds max: mxs::file_in() - Tried to execute a maxscript file which doesn’t exist: “C:/Users/loocas/AppData/Local/Thinkbox/Deadline/slave/Vfx01/jobsData/repathAssets_render.ms”
2012/07/30 16:31:23 INF: Loaded //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
2012/07/30 16:31:23 WRN: Gamma Correction is Being Enabled
2012/07/30 16:31:23 INF: Job: //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
)
2012-07-30 16:31:32: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2012-07-30 16:31:32:
Exception Details
FailRenderException – RenderTask: Unexpected exception (Exception caught in 3ds max: mxs::file_in() - Tried to execute a maxscript file which doesn’t exist: “C:/Users/loocas/AppData/Local/Thinkbox/Deadline/slave/Vfx01/jobsData/repathAssets_render.ms”
2012/07/30 16:31:23 INF: Loaded //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
2012/07/30 16:31:23 WRN: Gamma Correction is Being Enabled
2012/07/30 16:31:23 INF: Job: //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
)
Exception.Data: ( )
Exception.TargetSite: Void FailRender(System.String)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.ScriptPlugin.FailRender(String message)
at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at PollUntilComplete$948(Closure , PythonFunction , Object , Object )
at IronPython.Runtime.PythonFunction.FunctionCaller2.Call2(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , CodeContext , Object , Object ) at ExecuteScript$947(Closure , PythonFunction , Object , Object , Object , Object ) at IronPython.Runtime.PythonFunction.FunctionCaller4.Call4(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at CallSite.Target(Closure , CallSite , CodeContext , Object , Int32 , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at StartMaxJob$945(Closure , PythonFunction , Object )
at IronPython.Compiler.PythonCallTargets.OriginalCallTarget1(PythonFunction function, Object arg0)
at IronPython.Runtime.PythonFunction.FunctionCaller1.Call1(CallSite site, CodeContext context, Object func, T0 arg0) at CallSite.Target(Closure , CallSite , CodeContext , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at StartJob$924(Closure , PythonFunction , Object ) at IronPython.Compiler.PythonCallTargets.OriginalCallTarget1(PythonFunction function, Object arg0) at IronPython.Runtime.PythonFunction.FunctionCaller1.Call1(CallSite site, CodeContext context, Object func, T0 arg0)
at CallSite.Target(Closure , CallSite , CodeContext , Object )
at IronPython.NewTypes.Deadline.Plugins.DeadlinePlugin_1$1.StartJob()
at Deadline.Plugins.ScriptPlugin.StartJob(Job job)

RenderPluginException – An error occurred in StartJob(): RenderTask: Unexpected exception (Exception caught in 3ds max: mxs::file_in() - Tried to execute a maxscript file which doesn’t exist: “C:/Users/loocas/AppData/Local/Thinkbox/Deadline/slave/Vfx01/jobsData/repathAssets_render.ms”
2012/07/30 16:31:23 INF: Loaded //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
2012/07/30 16:31:23 WRN: Gamma Correction is Being Enabled
2012/07/30 16:31:23 INF: Job: //RAMMSTEIN/UNMANAGED_PROJECTS/Test/Bunny_CarPaint_Max2011_loocas_001.max
)
RenderPluginException.Cause: JobError (2)
RenderPluginException.HasSlaveLog: True
Exception.Data: ( )
Exception.TargetSite: Void StartJob(Deadline.Jobs.Job)
Exception.Source: deadline
Exception.StackTrace:
at Deadline.Plugins.ScriptPlugin.StartJob(Job job)
at Deadline.Plugins.Plugin.StartJob(Job job)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)
[/code]

Further more, when I submitted the tiles job, it generated (in my case) four separate jobs (only four regions to render).

Now, when I manually copied the script to the AppData folder, one of the jobs rendered fine, but deleted the script after it was done so the other three jobs started failing again.

Is there any option in the SMTD to NOT copy the script to the local job folder nad only use and NOT DELETE the centralized script file that is stored on the server?