Maxwell Render integration for Blender (different one)

well, here it renders fine… changed the material & sun/sky for the 2nd - must be something on your side :eyebrowlift2:

// win7, blender 2.78a, maxwell studio 3.2.15

with BlendMaxwell

& with nildars B-Maxwell

Yeah, i’m pretty sure it’s a problem on my side… If anybody has suggestions as to what the problem is, please get involved!

Using blender 2.78a, macos 10.12.3, Maxwell 3.2.1.5

you have maxwell 4 installed too? it tries to load extensions from there? that’s strange, may i see the log too? also, in prefs, addons window if you open blendmaxwell preferences, it looks like this? it should since maxwell does not have MAXWELL3_ROOT environment variable, but just in case


yea, and i forgot to mention, the file exports just fine here

eh, maybe i should change default sun direction, morning/evening sun looks much better :slight_smile:

everything is in the thread first post

No! :smiley:
i just love diversity, options and as such like being reminded to work on the good stuff, for nothing stays the same… maybe you could change few things occasionally just to stir things up :wink:
(well, you know it best, as it suits you)

BTW got also v4 demo installed, without conflicts or other showstoppers, except that v4 is still slower & not GPU ready, thus considered a downgrade :no::stuck_out_tongue:

I mean it’s the modifier the problem! Apply it and try again…:cool:

On linux no problem without modifier:


Only unique layer for object!

Maxwell 3.2.0.0 blender 2.78a last addon.

now the sun is pointing exactly from above (0.0, 0.0, 1.0), i must say very boring light indeed, nice numerically, but not visually

Yeah my blendmaxwell preferences look exactly like yours…

My first export attempt looks like this, it tries to load extensions from Sketchup 2017 this time:


Last login: Thu Feb 9 08:22:52 on ttys000
Matthews-iMac:~ Quaggers$ /Applications/blender.app/Contents/MacOS/blender ; exit;
Read new prefs: /Users/Quaggers/Library/Application Support/Blender/2.78/config/userpref.blend
found bundled python: /Applications/blender.app/Contents/MacOS/…/Resources/2.78/python
ndof: using SpaceNavigator
read blend: /Users/Quaggers/Documents/Blender/shell.blend
------------------------------ MXSExport ------------------------------
> pymaxwell version >= (3, 2, 0, 0)
> exporting mxs: ‘/Users/Quaggers/Desktop/shell.mxs’
> using temp directory at ‘/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60’
> collecting objects…
> writing materials:
> ‘Material’ > ‘OPAQUE’
> writing cameras:
> ‘Camera’
> writing empties:
> writing meshes:
> ‘Circle’
> writing instance bases:
> writing instances:
> writing duplicates:
> writing mxs references:
> writing particles:
> writing volumetrics:
> writing object modifiers:
> writing environment…
> writing custom alphas:
> writing scene properties…
> writing serialized scene data…
> running pymaxwell…
> command:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py ‘/Applications/Maxwell 3/Libs/pymaxwell/python3.5’ ‘/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/log.txt’ /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.json /Users/Quaggers/Desktop/shell.mxs
> loading data…
> creating new scene…
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/AssetReference.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/LensExtensions.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaterialModifiers.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellCloner.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellGrass.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellHair.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellMesher.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellParticles.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellProcedurals.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellScatter.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellSea.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MaxwellVolumetric.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MGrassH.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MGrassP.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/MWObjectAlembic.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/rfmeshes.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/rwmeshes.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/SubdivisionModifier.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/TiledTexture.osx.mxx incompatible with current SDK version
Extension: /Users/Quaggers/Library/Application Support/SketchUp 2017/SketchUp/Plugins/maxwell/bin/osx/extensions/wireframetexture.osx.mxx incompatible with current SDK version
> creating objects:
> Traceback (most recent call last):
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py”, line 2702, in <module>
main(args)
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py”, line 2584, in main
material(d, mxs)
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py”, line 889, in material
p = e.getExtensionData()
AttributeError: ‘NoneType’ object has no attribute ‘getExtensionData’

ERROR: > error in /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py
Traceback (most recent call last):
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/ops.py”, line 128, in execute
ex = export.MXSExport(mxs_path=p, )
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 212, in init
self._finish()
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 1894, in _finish
self._pymaxwell()
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 1939, in _pymaxwell
system.python34_run_script_helper(self.script_path, self.scene_data_path, self.mxs_path, append, self.use_wireframe, )
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/system.py”, line 466, in python34_run_script_helper
raise Exception(“error in {0}”.format(script_path))
Exception: error in /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-4cedb8be-eea1-11e6-8562-28f07641ad60/shell-4cedb8be-eea1-11e6-8562-28f07641ad60.py

location: <unknown location>:-1

location: <unknown location>:-1


After temporarily removing Sketchup, it does something different this time:


Last login: Thu Feb 9 08:38:56 on ttys000
Matthews-iMac:~ Quaggers$ /Applications/blender.app/Contents/MacOS/blender ; exit;
Read new prefs: /Users/Quaggers/Library/Application Support/Blender/2.78/config/userpref.blend
found bundled python: /Applications/blender.app/Contents/MacOS/…/Resources/2.78/python
ndof: using SpaceNavigator
read blend: /Users/Quaggers/Documents/Blender/shell.blend
------------------------------ MXSExport ------------------------------
> pymaxwell version >= (3, 2, 0, 0)
> exporting mxs: ‘/Users/Quaggers/Desktop/shell.mxs’
> using temp directory at ‘/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60’
> collecting objects…
> writing materials:
> ‘Material’ > ‘OPAQUE’
> writing cameras:
> ‘Camera’
> writing empties:
> writing meshes:
> ‘Circle’
> writing instance bases:
> writing instances:
> writing duplicates:
> writing mxs references:
> writing particles:
> writing volumetrics:
> writing object modifiers:
> writing environment…
> writing custom alphas:
> writing scene properties…
> writing serialized scene data…
> running pymaxwell…
> command:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py ‘/Applications/Maxwell 3/Libs/pymaxwell/python3.5’ ‘/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/log.txt’ /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.json /Users/Quaggers/Desktop/shell.mxs
> loading data…
> creating new scene…
> creating objects:
> 80%> Traceback (most recent call last):
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py”, line 2702, in <module>
main(args)
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py”, line 2561, in main
scene(d, mxs)
File “/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py”, line 1660, in scene
h, t = os.path.split(d[“output_mxi”])
KeyError: ‘output_mxi’

ERROR: > error in /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py
Traceback (most recent call last):
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/ops.py”, line 128, in execute
ex = export.MXSExport(mxs_path=p, )
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 212, in init
self._finish()
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 1894, in _finish
self._pymaxwell()
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/export.py”, line 1939, in _pymaxwell
system.python34_run_script_helper(self.script_path, self.scene_data_path, self.mxs_path, append, self.use_wireframe, )
File “/Users/Quaggers/Library/Application Support/Blender/2.78/scripts/addons/blendmaxwell/system.py”, line 466, in python34_run_script_helper
raise Exception(“error in {0}”.format(script_path))
Exception: error in /Users/Quaggers/Documents/Blender/shell-tmp-export_scene-1f289cca-eea4-11e6-b1d4-28f07641ad60/shell-1f289cca-eea4-11e6-b1d4-28f07641ad60.py

location: <unknown location>:-1

location: <unknown location>:-1


As for trying to load from Maxwell 4, today it just doesn’t want to!

Thanks for your time guys…

try following, try to export, then find that temp directory, eg ‘/Users/Quaggers/Documents/Blender/shell-tmp-export_scene-bla-bla-bla-bla-bla-bla-bla-bla’ and send me the .json file from there, if i remember right, those files are not deleted if export is aborted. if they are, go to render buttons - export options - and check ‘keep intermediates’ and then export. just want to check if mxi_path key is there and with correct value, to exclude that the problem is of this trivial kind. i can’t replicate the problem on my machine, so we have to debug on yours :frowning:

Hi,

I attached the json as a pdf to save on space…

Do you think there is any benefit in attempting to do a clean reinstall of blender and maxwell, using something like app cleaner? I’ve never used app cleaner and I don’t really want to, but if you think it would help or have other suggestions just let me know.

Thanks carbon,

Matt

Attachments

shell-daa5c262-eeb0-11e6-903a-28f07641ad60.pdf (25.8 KB)

ok, this is interesting, the key ‘output_mxi’ is not there while it should, what do you have in Output panel in Image and MXI paths?

EDIT: also, try it without sketchup files in place, that is really messing things up (god knows why).

There is nothing in image and mxi paths, however the boxes are checked:


ok, with this setting it should save mxi and image next to mxs. so there is definitely something wrong with extra rare occurrence. put some real path there and try to export…
later i will send you also edited blendmaxwell with some extra debug logging to see what is happening. this will take time, because this parameter is not simply written, but is ‘calculated’ each time you export based on various scenarios. but if i remember right, setting it to something has higher priority then leaving blank

i don’t know much about how app cleaner works, i remember one which was watching constantly what app is doing and then you had database of files it has written, then i guess it might work, but other will just look at usual places in Library and that’s probably all.
what i do is at least once a year clean install of everything osx included. that way you remove all rubbish and won’t get new, because you install just what you need :slight_smile:
but wait, maybe your setup is somehow specific and i have a bug which needs to be fixed
what i am sure, sketchup messed up extensions at least

Hey! That worked! The shell file exported perfectly…

I am currently testing it on a more complex scene and getting some strange behaviour but I will try to work through that myself. But it is exporting!

I will probably do a factory reset of my mac soon which may help things to run smoother. Probably much better than trying to use app cleaner.

Anyway, for now I will keep working and see how things go!

Thanks so much for your time carbon, I’ll keep you posted… Let me know if you want me to try the edited version of your plugin…

glad it works, but also i would like to know what was wrong with it. i try today to put it together and send it to you to test

hi matt
please try this quasi-debug-version of blendmaxwell (also, backup regular blendmaxwell first) and send me output from terminal, looks like this bug might appear only on osx (win and linux paths are written differently to mxs), but i’ve never encountered it
thanks
blendmaxwell-debug.zip (269 KB)