Export details to JSON files

   2240   4   1
User Avatar
Member
22 posts
Joined: 11月 2017
Offline
I like to export the "details" of every frame of one of my scene objects to .json files (or a single file?)
The detail spreadsheet changes every frame.

I'm not sure if there is a SOP for this - I was unable to get anywhere close with python. Any guidance is appreciated!
User Avatar
Member
7767 posts
Joined: 9月 2011
Online
The houdini geometry format is json. You could change the extension from bgeo to json on the output of a geometry rop to write out the geometry as json text. Of course this will contain the entire detail as a houdini data structure. For more control over what data is recorded and in what structure, a custom python based rop may be needed. Alternatively use python to post process the json output of a geometry rop.
User Avatar
Member
22 posts
Joined: 11月 2017
Offline
Do you mean a "post process" within a python node?
User Avatar
Member
7767 posts
Joined: 9月 2011
Online
monomind
Do you mean a "post process" within a python node?

No, I mean write a python program.
User Avatar
Member
22 posts
Joined: 11月 2017
Offline
Oh I see, sure.
I wonder, is it possible to export the cleaned up version directly by using a python node?
  • Quick Links