Export mesh ignores visibility of folders (PC)

Took me a minute to work out what was happening here, but (at least for the FBX exporter) the export routine, visible option, is ignoring visibility of folders.

My file has several folders each housing a working model that consists of dozens of meshes. When toggling the parent folder visibility, the visibility flag of the object underneath doesn’t change (this seems to be generally expected behavior)

When using the export option to only export visible objects, the menu option properly reflects the number of visible objects, based on the visibility of the folders. In this case, 238 objects in the scene, only 46 visible.

But the resulting exported FBX file includes all objects in the scene that were not explicitly, individually toggled invisible. So all of the 238 objects in the scene.

Haven’t checked that this is happening with all the other export formats, but I know I’ve seen it in the past for OBJ, and been annnoyed that all the objects in a scene were in the file I was bringing into another tool, but hadn’t bothered to track down the problem since it was easy enough to delete them, because in this case they don’t overlap. But since they loose the folder structure and come into zbrush in a flat structure, it’d be impossible if they were all piled up. But basically, in the current state, “Export Visible” isn’t functioning compatibly with folder/group workflow.


folder structure screenshot (since the forum ony allowing one media)

If i export Visible with my scene like this, all the meshes hidden under that FRESNO2 folder will still export.

Visible only respects the node visible flag (the eye icon).
It doesn’t check whether the mesh is actually visible or not (group parent not visible, or solo mode activated, etc).

But I should probably tweak the logic.

That makes sense, but the UI in the export options is showing 46 objects, but then it’s creating a file with 238 objects.

You either need to change the export logic to match that UI, or change the UI to match the export logic.

Yes it should match. Not sure yet which logic I’ll take.
For example selecting an hidden object makes it half-visible.

Personally I think it would make more sense for all actually visible items in the viewport to be exported.

It makes the most sense visually and technically, and this is also how it works for zbrush (hiding a folder hides the meshes)