question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue trying to export an image used in an extension

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:36 (36 by maintainers)

github_iconTop GitHub Comments

1reaction
scurestcommented, Jan 28, 2020

@emackey This was closed by #849.

0reactions
emackeycommented, Jan 28, 2020

Thanks @scurest and @jjcasmar

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found