Search - User list
Full Version: API samples/documentation/tutorials for PDG?
Root » Houdini Engine API » API samples/documentation/tutorials for PDG?
LithLoren
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.
seelan
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
tstex
Thanks for that. Is there any update on the python api?
seelan
The PDG python api is here: https://www.sidefx.com/docs/houdini/tops/pdg/index.html [www.sidefx.com]
seelan
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]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB