User avatar
By seghier
#399562
Hello
I don't know why the pictures aren't saved, have I missed something?
Code: Select all
from pymaxwell4 import *
import os


def run_maxwell_render(inPath,outFolder):

	if not os.path.exists(outFolder):
		os.mkdir(outFolder)

	parameters = []
	
	parameters.append('-mxs:'+inPath);
	parameters.append('-o:'+outFolder+'/match.exr');
	parameters.append('-mxi:'+outFolder+'/match.mxi');
	parameters.append('-res:300x200');
	parameters.append('-time:10');
	parameters.append('-sl:10');
	parameters.append('-nowait');
	
	runMaxwell(parameters);
	return 1;

if __name__ == "__main__":
	inPath = 'C:/Users/archi/Desktop/deit/match.mxs'
	outFolder = 'C:/Users/archi/Desktop/deit'
	run_maxwell_render(inPath,outFolder)

Image
User avatar
By Brany
#399650
That happens when the MXS scene was saved with output image/mxi disabled. You should add the following command line flags to the script to force the image/mxi to be wrote:

parameters.append('-nomxi:off')
parameters.append('-noimage:off')
Attic

Wow! :D Nice render

Material Editor Help

;)

Maxwell Render 5 crach

An image(6000x3600) was rendered 3 times,and maxw[…]

Thanks Luis, it's great to see progress with MW!