jayanam / batex

Export selected objects as fbx in batch operation
GNU General Public License v3.0
234 stars 30 forks source link

Runtime Error #4

Closed Tamzel closed 4 years ago

Tamzel commented 4 years ago

Traceback (most recent call last):

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\batex-master\bex_op.py", line 16, in execute

bat_export.do_export()

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\batex-master\bex_export.py", line 46, in do_export

path_mode='ABSOLUTE')

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\modules\bpy\ops.py", line 201, in call

ret = op_call(self.idname_py(), None, kw)

RuntimeError: Error: Traceback (most recent call last):

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\io_scene_fbx__init__.py", line 552, in execute

return export_fbx_bin.save(self, context, **keywords)

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3118, in save

ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3027, in save_single

encode_bin.write(filepath, root, FBX_VERSION)

File "C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\addons\io_scene_fbx\encode_bin.py", line 291, in write

with open(fn, 'wb') as f:

FileNotFoundError: [Errno 2] No such file or directory: '//..\Downloads\Kitbash Mini Cyberpunk\/TowerC_RoofTar.fbx'

location: C:\Users\Allan\Desktop\ALLAN_blender-2.80-windows64\2.80\scripts\modules\bpy\ops.py:201

location: :-1

Nohka commented 4 years ago

I got the same error and what I was instantly confused about was the use of slashes in the filepath. You have a backwards and a forwards slash in a row before the filename, whereas I had two backwards slashes and one forward slash before the filename. So... Tried to enter an address manually with only forward slashes.. and PRESTO! It works!

The BUG lies within the filepath for the selection of the folder, @jayanam . ;)

Nevertheless, there's an issue for me that the textures were exported together with the FBX, but they're not applied in the right place for (just) some objects somehow. Maybe it's just the specifics of FBX exporting - have to look into it.

jayanam commented 4 years ago

Which Blender version are u using?

On Tue, Apr 21, 2020 at 5:39 AM Nohka notifications@github.com wrote:

I get the same error and what I am instantly confused about is the use of slashes in the filepath. You have a backwards and a forwards slash in a row before the filename, whereas I had two backwards slashes and one forward slash before the filename. Not sure, how this works code-wise, but just sharing it out there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jayanam/batex/issues/4#issuecomment-616932919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJUGID2OIJAS3DYQ6SJZUTRNUIQTANCNFSM4JO6ZRFA .

Nohka commented 4 years ago

2.82.7

So I had the materials in the selection, but one of the materials (emission-based) was replaced with another. Might totally be my bad on some end. Already fixed this manually. Anyways, fantastic add-on, thanks!

jayanam commented 4 years ago

Ok, folder is now converted to abspath,