PDA

View Full Version : Command line and render elements


grabjacket
11-20-2008, 06:48 AM
Hello,

there seems to be a lot going on about commandline rendering lately. I've got a question about that although it's not strictly related to scripting. I've also posted this question (http://area.autodesk.com/index.php/forums/viewthread/18955/) over at the area but have gotten no reaction. Anyways:

Generally the question is: how do i render render-elements to the same folder as the outputfile when using 3dsmaxcmd.exe? I define the "-outputname"-switch in the command but it seems to only affect the final render and not the render-elements. The render-elements are saved to the location embedded in the file (which may not exist anymore: errors!).

Am i overlooking something?

Klaas Nienhuis

Kramsurfer
11-20-2008, 11:19 PM
I would try the CmdJob script option, perhaps just write a MaxScript string right into the command line with the required filepath right in it...


re = maxOps.GetCurRenderElementMgr()
for i= 0 to (re.NumRenderElements()-1) do
re.SetRenderElementFilename i ( "C:\\temp\\" + ( filenamefromPath (re.GetRenderElementFilename i) ))


as a single string.. insert the filepath where "C:\\temp\\" is ...

"re = maxOps.GetCurRenderElementMgr()\nfor i= 0 to (re.NumRenderElements()-1) do\n\tre.SetRenderElementFilename i ( \"C:\\temp\\\" + ( filenamefromPath (re.GetRenderElementFilename i) ))"

CGTalk Moderation
11-20-2008, 11:19 PM
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.