RE: [Rendering/scripting] - camera override at render/save scene outside project directory

Date : Mon, 12 May 2008 17:42:04 +0100
To : <XSI(at)Softimage.COM>
From : "kim aldis" <xsi(at)kim-aldis.co.uk>
Subject : RE: [Rendering/scripting] - camera override at render/save scene outside project directory

Your best bet when writing something like this is to use xsibatch –script and use the –main command line switch to specify arguments for the function given to –main. The documentation outlines this in some detail, look in the rendering->rendering methods section.

 

If you check on my web site you’ll find a batchmaker plugin for creating .bat files that might give you some ideas. Feel free to bastardise it in any way you choose.

 

See below for specific answers to your questions

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Cornelius Porzig
Sent: 12 May 2008 12:14
To: XSI(at)Softimage.COM
Subject: [Rendering/scripting] - camera override at render/save scene outside project directory

 

Hi all,

I’m trying to write a render submission script for XSI which sends render jobs to Rush. At the moment I’m at a very early development stage and (python) scripting in XSI is new ground for me.

Currently I have basically 3 questions if my ideas can be achieved:

 

-          Is it possible to override the camera XSI is using at batch-rendering? With a flag perhaps? Sometimes I have several cameras in one scene and I don’t want to create different render passes for all the cameras. I tried to change the camera in the SCNTOC-file, however it seems, that this file is not evaluated prior rendering. Or is duplicating the passes with a script, setting the camera, save the scene for rendering and then deleting the new passes the way to go?

[>] You could pass camera names over in your render script but if it were me I’d be making a pass for each camera.

 

-          Is it possible to save scenes outside the project directory with the help of scripting? Whenever I try this with a script, the file browser opens. Can this behavior be overridden or am I doing something wrong?

[>]  From memory, I think you have to save to *a* project directory so creating a temp project might be a way to go. Be wary of relative pathnames though. This may be why you’re not allowed to save outside of a project.

 

These are my questions for the moment and perhaps you can point me in the right direction. Thanks in advance for your input!

Kind regards,

Cornelius

 

 


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.