Notifications
Clear all

[Closed] Command line and render elements

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 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

1 Reply

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:\	emp\\" + ( filenamefromPath (re.GetRenderElementFilename i) )) 

as a single string… insert the filepath where “C:\ emp\” is …


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