Usage ¶
getGeoSize(session
: hapi.Session, node_id
: int
, format
: str
) → int
Cache the current state of the geo to memory, given the format, and return the size. Use this size with your call to hapi.saveGeoToMemory to copy the cached geo to your buffer. It is guaranteed that the size will not change between your call to hapi.getGeoSize and hapi.saveGeoToMemory.
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.
format
The file format, ie. “.obj”, “.bgeo.sc” etc.
Returns size as a int
.