Houdini 20.5 hapi

hapi.insertMultiparmInstance function

Insert an instance of a multiparm before instance_position.

Usage

insertMultiparmInstance(session: hapi.Session, node_id: int, parm_id: int, instance_position: int) → bool

Insert an instance of a multiparm before instance_position.

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.

parm_id

A parm id given by a hapi.ParmInfo struct that has type hapi.parmType.Multiparmlist.

instance_position

The new instance will be inserted at this position index. Do note the multiparms can start at position 1 or 0. Use hapi.ParmInfo.instanceStartOffset to distinguish.

hapi