Houdini 20.0 hapi

hapi.setImageInfo function

Set image information like resolution and file format.

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

You should also first call hapi.getImageInfo to get the current Image Info and change only the properties you don’t like.

Usage

setImageInfo(session: hapi.Session, material_node_id: int, image_info: hapi.ImageInfo) → bool

Set image information like resolution and file format. This information will be used when extracting planes to an 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.

image_info

The struct containing the new image information.

hapi