-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling export in RenderEngine does not work #1943
Comments
Hello, Currently, export uses various attributes that are not available in rendering context. |
I've opted to use the GLTF export as it is robust, compatible with multiple systems, and fast. I measured the GLTF exporter to be one of the fastest in Blender (with compression turned off). When I hit F12 to render my scene with my custom engine, I need a way to get the finalized mesh data into my engine. My engine can import from just about any pre-existing format, and I'd rather keep it that way as opposed to writing a custom mesh interface just for Blender. |
I've opted to write a Python exporter for the time being. I don't strictly have need of being able to call the exporter from the RenderEngine context anymore. If it doesn't seem like anyone else would need this, I think the issue can be closed. |
Would the custom operator be able to get the output from a custom renderer into the viewport, the render window and the various preview panes? If that's not possible, then being able to call the export inside a render context (with RenderEngine) is to allow custom renderers to really be integrated into Blender and work just like Cycles/EEVEE instead of requiring their own panels. |
Describe the bug
When trying to use the export within a bpy RenderEngine render function results in a context error in the console and the export does not occur.
To Reproduce
Steps to reproduce the behavior:
gltf_error_addon.zip
Copy the attached code directory into the addons folder for Blender to install it
Open Blender via a terminal, enable the Error Engine addon in preferences and select Error from the render engine menu
Hit F12 to render
Check the console logs to see the error messages
Expected behavior
The scene should be exported to the specified files/directories.
Screenshots
Version
The text was updated successfully, but these errors were encountered: