CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-30-2010, 09:14 PM   #1
sergo.pogosyan
Veteran
 
sergo.pogosyan's Avatar
Sergo
USA
 
Join Date: Apr 2006
Posts: 68
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:
Code:
batch_view = batchRenderMgr.CreateView undefined batch_view.outputFilename = "d:\picture.jpg" batchRenderMgr.netRender = true batchRenderMgr.Render()


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

Code:
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 batchRenderMgr.Render()


Any ideas?

Thank you.
 
Old 03-31-2010, 07:06 AM   #2
sergo.pogosyan
Veteran
 
sergo.pogosyan's Avatar
Sergo
USA
 
Join Date: Apr 2006
Posts: 68
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:
Code:
batch_view = batchRenderMgr.CreateView undefined rendOutputFilename = "d:\picture.jpg" batch_view.outputFilename = rendOutputFilename batchRenderMgr.netRender = true batchRenderMgr.Render()
 
Old 03-31-2010, 07:06 AM   #3
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 08:31 PM.


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