#398987
Brany wrote:
Tue Nov 05, 2019 4:45 pm
Bug found there. Fixed for the next patch ;)
Hello Brany, can you test this script
Code: Select all
from pymaxwell5 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+'/sphere-render.exr');
	parameters.append('-mxi:'+outFolder+'/sphere-render.mxi');
	parameters.append('-res:300x200');
	parameters.append('-time:10');
	parameters.append('-sl:5');
	parameters.append('-nowait');
	
	runMaxwell(parameters);
	return 1;

if __name__ == "__main__":
	inPath = 'input mxs'
	outFolder = 'output folder'
I run it with Pymaxwell editor but nothing happened as before
#398995
That script doest nothing but set "inPath" and "outFolder" in the last part. I guess you want to call the "run_maxwell_render" function above, so you missed to add the following call at the end of the script:
Code: Select all
from pymaxwell5 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+'/sphere-render.exr');
	parameters.append('-mxi:'+outFolder+'/sphere-render.mxi');
	parameters.append('-res:300x200');
	parameters.append('-time:10');
	parameters.append('-sl:5');
	parameters.append('-nowait');
	
	runMaxwell(parameters);
	return 1;

if __name__ == "__main__":
	inPath = 'input mxs'
	outFolder = 'output folder'
	run_maxwell_render(inPath,outFolder) ### you forget this?
4K Support not working

OK, good. I'm using the latest version. So I'm loo[…]

Hi James, I never moved my projects, so I didn't […]

Substance to VRay to Maxwell

+1

@Kevin - Hey ya, here is the preset, I assume you […]