Notifications
Clear all

[Closed] Render automation

Hi Folks,

I need some help – quick! I have to render 10 shots tonight, foreground then background passes. I want to script it, quick and dirty, but am under such pressure to get the animation finished I may have to do 20 manual submits.

I’m doing the following:

1 – Grabbing all my cameras into an array
2 – Setting filename and path based on camera names
3 – Setting start and end frames based on camera transform keys
4 – Showing hiding geometry based on layers
5 – Clicking “Render Scene” and then manually inputting the Job name, clicking Connect then Submit.

So — is there a way to automate step 5?

Any help sure would be appreciated.

Thanks,
Dave

4 Replies

Ok – I got it. Max rocks!

OK – small problem.

Once I’ve submitted the job, I seem to be unable to click on the job in the queue and edit or even delete it. Can anyone shed any light on what I should do to get over this?

Thanks.

Here is a snippet of code I use in one of my scripts to submit to the queue:

  
on btn_net_render pressed do
(
 render_open = false
 if renderSceneDialog.isOpen() == true then 
 (
  renderSceneDialog.close()
  render_open = true
 )
 
 rendOutputFilename = (maxfilepath + (getFilenameFile maxfilename) + ".jpg")
 setrendertype #view
 MyManager = netrender.getmanager()
 MyManager.connect #manual "xxx.xxx.xxx.xxx" -- the IP address
 MyJob = MyManager.NewJob()
 rendsavefile = false
 MyJob.name = (getFilenameFile maxfilename)
 MyJob.priority = 30
 MyJob.frames = (filterstring (slidertime as string) "f")[1]
 MyJob.FrameOutputName = rendOutputFilename
 MyJob.skipOutputTest = true
 MyJob.useallservers = true
	
 MyJob.submit()
 if render_open == true then renderSceneDialog.open()
)

Just change the name to fir yours and the IP address and it should work.

Thanks Anton,
I cracked it in the end. I think I was just a little stressed, but once I broke down the help topic it wasn’t quite as scary as I though it was going to be!
Cheers for yuor input,
Dave