Notifications
Clear all

[Closed] How to change renderElement output path in 3dsmaxcmd?

I use the 3dsmaxcmd.exe, and want to change the output path to anywhere;
in 3dsmaxcmd, there is an argument -outputname can assign the rendOutputFilename, but No argumnt can set the renderElement outputPath, so i passed a script (SetRenderElementOutputPath.ms) to -preRenderScript, but Nothing happend.
the 3dsmaxcmd works fine, without any renderElements. pls help.

http://forums.cgsociety.org/showthread.php?f=6&t=1206592


--SetRenderElementOutputPath.ms
(
	renderSceneDialog.open()
	
	it = maxOps.GetCurRenderElementMgr() --maxOps.GetRenderElementMgr #production
	for i in 0 to (it.numRenderElements()-1) do
	(
		oName = fileNameFromPath (it.GetRenderElementFileName i)
		newName = "c:\\" + oName
		it.SetRenderElementFileName i newName
	)
	
	renderSceneDialog.update()
	renderSceneDialog.commit()
	
	sleep 5
	renderSceneDialog.close()
)

CMD:


3dsmaxcmd c:/elementTest.max -perRenderScript:e:/SetRenderElementOutputPath.ms -o:c:/ele.jpg