SpaceToast Posted October 27, 2017 Share Posted October 27, 2017 Does anyone have experience using the Tower of Babel exporter with the Mac version of Blender? My test scenes fail with the following log error (in both Bforartists and the "mainline" Blender app). Is there perhaps a file-writing peculiarity under OS-X? I'm too weak at Python to dig any deeper before reaching out, I'm afraid... [snip] ========= Writing of files started ========= ========= An error was encountered ========= File "/Users/me/Library/Application Support/Bforartists/2.79/scripts/addons/tower-of-babel/js_exporter.py", line 177, in execute self.to_script_file() File "/Users/me/Library/Application Support/Bforartists/2.79/scripts/addons/tower-of-babel/js_exporter.py", line 217, in to_script_file self.world.initScene_script(file_handler, typescript_file_handler, self.needPhysics, self) File "/Users/me/Library/Application Support/Bforartists/2.79/scripts/addons/tower-of-babel/world.py", line 84, in initScene_script file_handler.write(indent + 'scene.fogMode = ' + self.fogMode + ';\n') ERROR: Can't convert 'int' object to str implicitly ========= end of processing ========= elapsed time: 0 min, .0047 secs test_scene.blend Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted October 27, 2017 Share Posted October 27, 2017 It was nothing to do with mac, and everything to do with me never using fog. Nothing about fog is written unless you turn it on in Blender. This commit writes it correctly. It is a good idea to restart Blender when over writing an add-on. Quote Link to comment Share on other sites More sharing options...
SpaceToast Posted October 27, 2017 Author Share Posted October 27, 2017 Excellent! Output works perfectly now. Thanks, JC. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.