Usage ¶
addAttribute(session
: hapi.Session, node_id
: int
, part_id
: int
, name
: str
, attr_info
: hapi.AttributeInfo) → bool
Add an attribute.
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 SOP node id.
part_id
Currently not used. Just pass 0.
name
Attribute name.
attr_info
hapi.AttributeInfo stores attribute properties.