API samples/documentation/tutorials for PDG?

   5965   4   1
User Avatar
Member
13 posts
Joined: 6月 2018
Offline
We are looking at adding more robust support for PDG in our engine. We are on Houdini version 17.5.173 and can see some PDG related API calls (C++), but I haven’t been able to find much documentation beyond that. Any help would be much appreciated.
User Avatar
Member
571 posts
Joined: 5月 2017
Offline
Currently, there isn't any documentation for HAPI PDG integration yet, but a good reference would be the Houdini Engine for Unity plugin. You can take a look at the relevant source files here: https://github.com/sideeffects/HoudiniEngineForUnity/tree/Houdini17.5/Plugins/HoudiniEngineUnity/Scripts/PDG [github.com]

Here is a list of the PDG-specific APIs in HAPI:

// Query PDG state:
HAPI_GetPDGGraphContexts
HAPI_GetPDGEvents
HAPI_GetPDGState

// Manage PDG cook:
HAPI_CookPDG
HAPI_DirtyPDGNode
HAPI_PausePDGCook
HAPI_CancelPDGCook
 
// Manage work items:
HAPI_CreateWorkitem
HAPI_GetWorkitemInfo
HAPI_GetNumWorkitems
HAPI_GetWorkitems
HAPI_CommitWorkitems
 
// Set work item data:
HAPI_SetWorkitemIntData
HAPI_SetWorkitemFloatData
HAPI_SetWorkitemStringData

// Query work item data:
HAPI_GetWorkitemDataLength
HAPI_GetWorkitemIntData
HAPI_GetWorkitemFloatData
HAPI_GetWorkitemStringData
HAPI_GetWorkitemResultInfo
User Avatar
Member
454 posts
Joined: 7月 2005
Offline
Thanks for that. Is there any update on the python api?
User Avatar
Member
571 posts
Joined: 5月 2017
Offline
The PDG python api is here: https://www.sidefx.com/docs/houdini/tops/pdg/index.html [www.sidefx.com]
User Avatar
Member
571 posts
Joined: 5月 2017
Offline
Also, we updated the docs for HAPI PDG integration for Houdini 18: https://www.sidefx.com/docs/hengine/_h_a_p_i__p_d_g.html [www.sidefx.com]
  • Quick Links