DaveWortley
06-30-2011, 09:34 AM
I've created a custom render pass system for use with Deadline. I have a major problem, I've basically created an interface that builds Render Tasks 'Structs' and puts them into an array.... works locally fine.... and the persistent globals stay with the file when re-opening in workstation mode, but I get a problem on Deadline.
Bit of example psuedo code...
persistent global AR_Tasks
AR_Tasks = #()
Struct Task (ID, Frames, Output)
Persistent Global newtask = Task ID:1 Frames:2 Output:"c:\\test\\test01.tga"
append AR_Tasks newtask
Then in as a Deadline MAXScript Scene Processing Job my script is failing here in the code....
...
for task in AR_tasks where Task.id == currentframe do
....
throws the following error....
=======================================================
Exception during render: An error occurred in RenderTasks(): RenderTask: Unexpected exception (Exception caught in 3ds max: -- Unknown property: "id" in undefined
2011/06/29 18:08:21 INF: Loaded C:/Documents and Settings/remote/Local Settings/Application Data/Prime Focus/Deadline/slave/jobsData/MASTER_03_dw.max
2011/06/29 18:10:51 INF: Job: C:/Documents and Settings/remote/Local Settings/Application Data/Prime Focus/Deadline/slave/jobsData/MASTER_03_dw.max
)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
So the AR_Tasks array global is being persistent but the contents of the array are not... But if i re-open the file locally both are persistent... So I'm a bit stuck till the Thinkbox guys get back to me, but thought I'd open it up to the floor in the hope that someone had come across something like this before.
D
Bit of example psuedo code...
persistent global AR_Tasks
AR_Tasks = #()
Struct Task (ID, Frames, Output)
Persistent Global newtask = Task ID:1 Frames:2 Output:"c:\\test\\test01.tga"
append AR_Tasks newtask
Then in as a Deadline MAXScript Scene Processing Job my script is failing here in the code....
...
for task in AR_tasks where Task.id == currentframe do
....
throws the following error....
=======================================================
Exception during render: An error occurred in RenderTasks(): RenderTask: Unexpected exception (Exception caught in 3ds max: -- Unknown property: "id" in undefined
2011/06/29 18:08:21 INF: Loaded C:/Documents and Settings/remote/Local Settings/Application Data/Prime Focus/Deadline/slave/jobsData/MASTER_03_dw.max
2011/06/29 18:10:51 INF: Job: C:/Documents and Settings/remote/Local Settings/Application Data/Prime Focus/Deadline/slave/jobsData/MASTER_03_dw.max
)
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)
So the AR_Tasks array global is being persistent but the contents of the array are not... But if i re-open the file locally both are persistent... So I'm a bit stuck till the Thinkbox guys get back to me, but thought I'd open it up to the floor in the hope that someone had come across something like this before.
D
