FBX Export Empty File #49831

Closed
opened 2016-10-25 03:15:06 +02:00 by Robert · 8 comments

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.

test.blend

**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. [test.blend](https://archive.blender.org/developer/F386008/test.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Rob62485

Added subscriber: @Rob62485

Added subscriber: @Sergey

Added subscriber: @Sergey
Bastien Montagne was assigned by Sergey Sharybin 2016-10-25 10:36:40 +02:00

@mon29, mind having a look? Thanks :)

@mon29, mind having a look? Thanks :)

Added subscriber: @PeterStaples

Added subscriber: @PeterStaples

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.

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.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

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).

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).
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#49831
No description provided.