#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?
Who are you?

Mike 61 West midlands Disabled ex soldier I am try[…]

I haven't had any resolution on this issue, despit[…]

Simple basics in pdf form.

Right, first off I made a huge mistake which compo[…]

Question for Maya users

Hi, Which version do you use for those that are o[…]