Page 1 of 1

Pymaxwell4 : images don't saved

Posted: Fri Apr 03, 2020 5:12 am
by seghier
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

Re: Pymaxwell4 : images don't saved

Posted: Fri Apr 03, 2020 9:29 am
by luis.hijarrubia
It seems ok, just like the run_maxwell_render.py example. Even if GUI is not showing the configuration, maxwell it's not generating the images either?

Re: Pymaxwell4 : images don't saved

Posted: Fri Apr 03, 2020 12:46 pm
by seghier
Yes i tested it with the original example, and the same problem

Re: Pymaxwell4 : images don't saved

Posted: Tue Apr 28, 2020 5:17 pm
by Brany
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')

Re: Pymaxwell4 : images don't saved

Posted: Wed Apr 29, 2020 5:24 am
by seghier
Thank you that work

Re: Pymaxwell4 : images don't saved

Posted: Wed Apr 29, 2020 7:17 am
by seghier
Where i can find all parameters ? i remember they were available in the old website
-mxs,-mxi,-time ....

Re: Pymaxwell4 : images don't saved

Posted: Wed Apr 29, 2020 9:29 am
by luis.hijarrubia
https://nextlimitsupport.atlassian.net/ ... Parameters

A more complete list is on maxwell.exe from command line: maxwell.exe -help

Re: Pymaxwell4 : images don't saved

Posted: Wed Apr 29, 2020 10:22 am
by seghier
Thank you