I am implementing
RenderEngine.render_preview(self, scene) and want to export the scene data, to then render it with my engine. I wrote the export script myself, so modifying it is an option, if that helps.
Any ideas are greatly appreciated!
PS: I tried:
- Overriding the context for the operator: seems not to be an option, since it needs to contain
active_objectfrom the scene the material preview scene was created for. Results in a Blender crash, actually.
- Adding a
sceneattribute to my exporter: cannot be passed to
bpy.ops.export_scene.fooas blender properties would be.
bpy.props.PointerProperty: not an option, since you cannot point to Scenes. Usually you would pass the scene index, but in this case the material preview scene is special enough to not show up in