Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / send net render job with pre render script
  RSS 2.0 ATOM  

send net render job with pre render script
Rate this thread
 
41992
 
Permlink of this thread  
avatar
  • DaDice
  • Posted: 14 April 2010 09:59 PM
  • Total Posts: 8
  • Joined: 17 March 2010 08:32 AM

Hello,

I want to execute a script before rendering my scene on the farm by setting a prerender script. While rendering the job locally or send it manually to the farm everything works fine.

When I try to send the job to the farm via maxscript the prerender script is not executed. I can’t understand why it doesn’t work. Did I forget something?

Thank you!

oNetRenderManager NetRender.GetManager()
oNetRenderManager
.connect #manual "bb_manager"
 
oSimulationJob oNetRenderManager.newJob()
oSimulationJob
.priority 25
oSimulationJob
.fromFrame 0
oSimulationJob
.toFrame 0
oSimulationJob
.outputWidth 800
oSimulationJob
.outputHeight 600
oSimulationJob
.renderCamera "RenderCam"

bResult oSimulationJob.submit()

oNetRenderManager
.disconnect()


Replies: 0
avatar
  • DaDice
  • Posted: 15 April 2010 12:37 AM

I tried another solution by setting a persisten prerender callback. Again the same problem. Locally no problems, but it doesn’t work on the farm.



Replies: 0
avatar
  • DaDice
  • Posted: 15 April 2010 03:09 AM

Finally I found a solution. I saved a script in the startup folders of the render slaves which sets a prerender callback.



Replies: 0