Houdini 20.0 hapi

hapi.createWorkItem function

Creates a new pending work item for the given node. The work item

Usage

createWorkItem(session: hapi.Session, node_id: int, name: str, index: int) → int

Creates a new pending work item for the given node. The work item will not be submitted to the graph until it is committed with hapi.commitWorkItems. The node is expected to be a generator type.

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.

node_id

The node id.

name

The null-terminated name of the work item. The name will be automatically suffixed to make it unique.

index

The index of the work item. The semantics of the index are user defined.

Returns work_item_id as a int.

hapi