Issue trying to export an image used in an extension
See original GitHub issueI am trying to create an extension for supporting some very simple materials like spheerical mapping. The material has some parameters and an image and in Blender is implemented a ShaderNodeCustomGroup.
For exporting this material, I am looking for the socket where the ImageTexture node is connected and I use the gather_texture_info
function which is used for other textures in the standard material. This function returns a gltf2_io.TextureInfo
However, when I add this object to my extension definition, I get an error “TextureInfo is not JSON serializable” although is used several times accross the code.
texture_info = self.gather_texture_info((env_socket,), export_settings)
gltf2_material.extensions[bl_info['name']] = self.Extension(
name=bl_info['name'],
extension={"img": texture_info},
required=False
)
How should I add the texture info so It works?
Issue Analytics
- State:
- Created 4 years ago
- Comments:36 (36 by maintainers)
Top Results From Across the Web
Why is photos 5.0 changing image extension from jpg to jpeg ...
It never used to force jpeg extensions on files that had jpg but now it is forcing all exported images to be .jpeg....
Read more >Export As Images - Extensions - LibreOffice
This extension lets you export all the Impress slides or Draw pages as images of JPG, PNG, GIF, BMP and TIFF format.
Read more >Web Page or Extension Object Blank When Exporting ...
When you try to export dashboards that use web page or extension objects to image or .pdf files, the objects appear blank in...
Read more >Export documents, layers, and artboards in Photoshop
Navigate to File > Export > Quick Export As [image format]. Go to the Layers panel. Select the layers, layer groups, or artboards...
Read more >Image Downloader
Image Downloader ━━━━━━━━━━ If you want to download many images at once, with this extension you can: - Explore images on the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@emackey This was closed by #849.
Thanks @scurest and @jjcasmar