Skip to main content
Participant
April 5, 2023
Question

Custom output node that output Json files?

  • April 5, 2023
  • 1 reply
  • 605 views

Hi, 

Is there a way I can create a custom output node that export json file? If so, is there any totorial on how to do this? 

 

apperciate any helps!

 

thanks!

This topic has been closed for replies.

1 reply

Cyril Dellenbach
Community Manager
Community Manager
April 6, 2023

Hello @MYU0207,

 

Thanks for the message.

 

Depending on what datas you wish to export, this is possible trough our Python API, but I'll need to know a bit more on your project to give you a proper help. What do you need to export?

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
MYU0207Author
Participant
April 6, 2023

Hi Cyril,

Below is an example setup in Designer. I want to import couple images, make them tilable and export them out into a 'png' and with a 'json' file for each bitmap. For each json file, I will need to manually input value that reflects real world tile sizing (float) for each bitmap.( example below, I will need to have empty fields to input values)  

 

Cyril Dellenbach
Community Manager
Community Manager
April 11, 2023

Thanks for the clarification.

 

There isn't a simple way to export a physical size per images into JSON file, but I'd advise you to proceed as this:

 

  • Create a SBSAR out of a graph which makes any input bitmap tileable
  • Write a script that turns the physical size inputs into JSON files
  • In that same script, use the SBSRender tool to process your images using the SBSAR file
  • The final script could take a folder of images as input and export each image within and its corresponding JSON file side-by-side

 

With that being said, I am curious to know where the physical size value comes from. Is it a metadata from the picture?

 

Keep me posted,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe