Page MenuHome

FBX Export Empty File
Closed, ArchivedPublic

Description

System Information
Windows 10
NVIDIA GeForceGTX 1060 6GB

Blender Version
Broken: 2.7.8 4bb1e22

Short description of error
After exporting an object to fbx with the 'Selected Objects' option checked, the exported file does not contain any mesh info, and has a file size of 4kb.

Exact steps for others to reproduce the error
Select an object in the scene, then export to FBX with the 'Selected Objects' option checked.

Event Timeline

Sergey Sharybin (sergey) lowered the priority of this task from 90 to Normal.

@mon29, mind having a look? Thanks :)

Had a quick look at this,

replacing

context.selected_objects

with

[o for o in context.scene.objects if o.select]

in export_fbx_bin.py line 3058

fixes (as a workaround) the error. For some reason context.selected_objects is returning an empty list on some occasions, especially after start up. This behaviour can also extend to the console, with C.selected_objects returning [] with objects clearly selected.

Bastien Montagne (mont29) changed the task status from Unknown Status to Archived.Oct 25 2016, 4:34 PM

There is no bug here, in fact what happens is that your 3DView is disconnected from scenes' layers.

context.selected_objects uses Scene's visibility of objects, obviously not some random 3DView one (and hidden objects are never considered as selected).