- Wed Sep 13, 2017 6:40 am
#395406
hello
i tried to render animation with this code but i got error
C:\Python27\python.exe F:/maxwell_tool_project/v3/maxwell_tool.py
MAXWELL3_ROOT environment variable not found!
Traceback (most recent call last):
File "F:/maxwell_tool_project/v3/maxwell_tool.py", line 385, in renderAnimation
runMaxwell(parameters);
File "C:\Python27\lib\site-packages\pymaxwell\__init__.py", line 127, in runMaxwell
parameters.insert(0,mwroot+'/maxwell.exe');
UnboundLocalError: local variable 'mwroot' referenced before assignment
i tried to render animation with this code but i got error
Code: Select all
error : def renderAnimation(self):
inPath = self.anim_input.text().toAscii().data()
mxsList = getFilesFromPath(inPath, 'mxs')
scene = Cmaxwell(mwcallback)
for mxs in mxsList:
scene.readMXS(os.path.join(inPath, mxs))
#ok = scene.writeMXS(os.path.join(outPath, mxs))
#outPath = self.edit_input_file.text().toAscii().data()
outMxi = self.edit_mxi_file.text().toAscii().data()
#outMxs = self.edit_mxs_file.text().toAscii().data()
outImg = self.edit_img_file.text().toAscii().data()
#outDen = self.edit_den_file.text().toAscii().data()
choice = os.path.join(inPath, mxs)
parameters = []
parameters.append('-mxs:' + choice);
parameters.append('-nowait');
parameters.append('-nogui');
parameters.append('-o:' + outImg);
parameters.append('-mxi:' + outMxi);
#parameters.append('-denoisePath:' + outDen);
#parameters.append('-denoiseStartSL:' + str(Di));
#parameters.append('-denoiseAutoconfig:' + str(v));
runMaxwell(parameters);
return 1;
#scene.freeScene()
C:\Python27\python.exe F:/maxwell_tool_project/v3/maxwell_tool.py
MAXWELL3_ROOT environment variable not found!
Traceback (most recent call last):
File "F:/maxwell_tool_project/v3/maxwell_tool.py", line 385, in renderAnimation
runMaxwell(parameters);
File "C:\Python27\lib\site-packages\pymaxwell\__init__.py", line 127, in runMaxwell
parameters.insert(0,mwroot+'/maxwell.exe');
UnboundLocalError: local variable 'mwroot' referenced before assignment