Exporting Static 2D Textures via Python

When using unreal.RenderingLibrary.export_texture2d(world_context, texture, file_path, file_name). I get this warning:
ImageUtils: Warning: Unsupported source texture format provided.
And an empty image (0kb) is exported to disk. What should I do to the format to allow for exporting?

In case anyone else is having this issue- converting the render target format with

renderTarget.set_editor_property(‘render_target_format’, unreal.TextureRenderTargetFormat.RTF_RGBA8)

fixed my particular issue

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.