Houdini 20.0 hapi

hapi.getPDGGraphContexts function

Return an array of PDG graph context names and ids, the first

Usage

getPDGGraphContexts(session: hapi.Session, start: int, length: int) → (list of int, list of int)

Return an array of PDG graph context names and ids, the first count names will be returned. These ids can be used with hapi.getPDGEvents and hapi.getPDGState. The values of the names can be retrieved with hapi.getString.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

start

First index of range. Must be at least 0 and at most context_count - 1 where context_count is the count returned by hapi.getPDGGraphContextsCount

length

Given num_contexts returned by hapi.getPDGGraphContextsCount length should be at least 0 and at most num_contexts - start.

Returns a tuple of (context_names_array, context_id_array).

hapi