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

Here is a somewhat ordered list of things I observ[…]

Fully working plugin for C4D

When you will be working on it please try to keep […]

Let's talk about Maxwell 5.2

Is there any update regarding CPU engine ? Som[…]

Hello, I agree with Jasper ... I still have this […]