Houdini 21.0 hapi

hapi.renderCOPOutputToImage function

Render a single texture from a COP to an image for

Note that you must call this method, hapi.renderCOPToImage or hapi.renderTextureToImage before any of the other material APIs.

Usage

renderCOPOutputToImage(session: hapi.Session, cop_node_id: int, cop_output_name: str) → bool

Render a single texture from a COP to an image for later extraction. COPs may have multiple outputs, so this method lets you select which output to use.

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.

cop_node_id

The COP node id.

cop_output_name

The name of the output to extract. Passing in an empty string will default to the COP’s first output.

hapi