yoyoz wrote:- the "Selection only" option is now ignored, you have to use one of the two others if you don't want to export all objects
- all layers are now exported, instead of only visible ones (this is required in order to have the fix working)
So if you don't wont objects to export you have to hid them manually? There should be a better way to do it.
We had a similar issue in the Yafaray exporter.
This code will get you all objects that are on active layers, are not hidden for rendering but can be hidden for viewport visibility (you still want those exported). (edit: added test for type)
- Code: Select all
[o for o in self.scene.objects if not o.hide_render and (o.is_visible(self.scene) or o.hide) and (o.type in {'MESH', 'SURFACE', 'CURVE', 'FONT'})]
This is the same how Blender internal works by default: an object does not get "exported" only if its not present on active layers or is present on active layers but is hidden for render (but
not for viewport). IMO, this is how Octane exporter should work by default. The user could then have the additional option (in the Octane export settings) to
remove visible, to remove from this list also all those that are hidden for viewport visibility. The option
remove hidden could then be removed from the exporter entirely as it serves no purpose, but maybe still keep
selection only , this one will then invalidate all the previously described process and export only the selected ones, even if they are hidden for renderability (for the record: I never use this option, but I guess others might)
EDIT: For a more seamless experience the exporting process to Octane should be exactly the same as rendering with Blender (minus the stuff that can't be yet exported to polygons). Having a significantly different way to specify what is to be exported and what not is not user friendly, IMO.