setting batchrender outputfile

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  03 March 2010
setting batchrender outputfile

I'm in process of writing script to automate adding views to batchrender. Locally everything works fine, but when I submit network rendering it doesn't work.
It seems that setting output file for batchrender job doesn't work as it should.
But the strangest thing is that locally this code works well.

Here's the test code:

batch_view = batchRenderMgr.CreateView undefined
batch_view.outputFilename = "d:\picture.jpg"
batchRenderMgr.netRender = true

I even tried to make bitmap file manually and use its .filename to assign to job's filename but with no luck.

batch_view = batchRenderMgr.CreateView undefined
batch_view.outputFilename = ""
temp_bitmap=Bitmap 10 10 fileName:temp_path
save temp_bitmap
close temp_bitmap
batch_view.outputFilename = temp_bitmap.fileName
batchRenderMgr.netRender = true

Any ideas?

Thank you.
  03 March 2010
I've tried to use rendOutputFilename property as an intermediate variable and it leaded to interesting result - when I open new max session and run the script it still fails, saying "Unexpected exception has occured" in backburner, but when I run script once more it works well. And all sequent commits also work. Is there some way to make it work right from the start? I don't understand what's happening, it seems like a bug in batchrender. Am I doing something wrong?

test code:

 batch_view = batchRenderMgr.CreateView undefined
rendOutputFilename =  "d:\picture.jpg"
 batch_view.outputFilename = rendOutputFilename
 batchRenderMgr.netRender = true
  03 March 2010
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:00 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.