Houdini 20.5 hapi

hapi.getImagePlaneCount function

Get the number of image planes for the just rendered image.

Note that you must call hapi.renderTextureToImage first for this method call to make sense.

Usage

getImagePlaneCount(session: hapi.Session, material_node_id: int) → int

Get the number of image planes for the just rendered image.

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.

material_node_id

The material node id.

Returns image_plane_count as a int.

hapi