Meta-data describing a Geo Part
Methods ¶
id
: int
Property
Id to identify this part relative to it’s Geo String handle for the name of the part
nameSH
: int
Property
Id to identify this part relative to it’s Geo String handle for the name of the part
type
: hapi.partType
Property
Id to identify this part relative to it’s Geo String handle for the name of the part
faceCount
: int
Property
Number of points. Note that this is NOT the number of “positions” as “points” may imply. If your geometry has 3 points then set this to 3 and not 3*3.
vertexCount
: int
Property
Number of points. Note that this is NOT the number of “positions” as “points” may imply. If your geometry has 3 points then set this to 3 and not 3*3.
pointCount
: int
Property
Number of points. Note that this is NOT the number of “positions” as “points” may imply. If your geometry has 3 points then set this to 3 and not 3*3.
attributeCounts
: list
of int
Property
isInstanced
: bool
Property
If this is true, don’t display this part. Load its data but then instance it where the corresponding instancer part tells you to instance it.
instancedPartCount
: int
Property
The number of parts that this instancer part is instancing. For example, if we're instancing a curve and a box, they would come across as two parts, hence this count would be two. Call hapi.getInstancedPartIds to get the list of HAPI_PartId
instanceCount
: int
Property
The number of instances that this instancer part is instancing. Using the same example as with hapi.PartInfo.instancedPartCount if I'm instancing the merge of a curve and a box 5 times, this count would be 5. To be clear, all instanced parts are instanced the same number of times and with the same transform for each instance. Call hapi.getInstancerPartTransforms to get the transform of each instance.
hasChanged
: bool
Property
If this is false, the underlying attribute data appear to match that of the previous cook. In this case you may be able to re-used marshaled data from the previous cook.