HDK - persist data to hip file?
2492 6 2- jGrBr
- Member
- 11 posts
- Joined:
- Offline
I am writing a system which keeps track of asset metadata within the runtime. It relies on the FS_Helper classes to look up asset locations based on a uri scheme. I would like write data to the hip file on save and fetch it out of the hip file on load. Is this possible via the api?
Edited by jGrBr - March 18, 2017 12:31:31
- edward
- Member
- 7743 posts
- Joined: July 2005
- Offline
Traditionally, asset management systems install things like menu hooks and/or expose web interfaces within Houdini's web browser. This allows one to run scripts to create nodes and persist data in the scene file via the created nodes (eg. userdata [sidefx.com]).
Having said that, there are various ways to hack it. One of which is to store scene level “global” variables. eg. OPgetDirector()->getCommandManager()->setVariable(). OPgetDirector() gives pointer for the root “/” scene node. So you could also store userdata there as well (you can call into the Python HOM API from C++).
Having said that, there are various ways to hack it. One of which is to store scene level “global” variables. eg. OPgetDirector()->getCommandManager()->setVariable(). OPgetDirector() gives pointer for the root “/” scene node. So you could also store userdata there as well (you can call into the Python HOM API from C++).
- jGrBr
- Member
- 11 posts
- Joined:
- Offline
- edward
- Member
- 7743 posts
- Joined: July 2005
- Offline
- jGrBr
- Member
- 11 posts
- Joined:
- Offline
- edward
- Member
- 7743 posts
- Joined: July 2005
- Offline
- edward
- Member
- 7743 posts
- Joined: July 2005
- Offline
-
- Quick Links