get_attrib_stats
Aggregate numeric Houdini attributes into min, max, mean, sum, and percentiles to verify simulation trends across points, prims, groups, or frames without reading raw values.
Instructions
Aggregate statistics for numeric attributes: min, max, mean, sum.
Use this to prove something is happening, rather than reading values. get_geometry_info names the attributes; get_attrib_values returns every value, which on a 60k-point cache tells you nothing you can read. Vector attributes also report per-component ranges, so a velocity field's per-axis extremes come back in the same call.
Args:
node_path: SOP node path.
attribs: Attribute names. Omit for every attribute of the class. A
name written "age/life" is the ratio of two attributes, per
element (elements dividing by zero are counted, not used).
attrib_class: "point", "prim", "vertex" (uv and N usually live
there) or "detail".
frames: Measure at each of these frames: a row per node per frame,
frames cooked in increasing order, the current frame put back.
element_count is the point count and P's per-component min/max
the bounds, so a sim's count and spread over time is ONE call.
node_paths: Several nodes (variants) in the same call, instead of
node_path.
percentiles: e.g. [5, 50, 95] for the distribution (50 = median).
group: Only the elements in this group pattern, as a SOP group field
takes it: "grp", "@id>=0", "0-99"; space-separated parts add up.
Point and prim classes.
unique: Count distinct values of integer and string attributes
(unique_count, most_common); for the prim class also
vertices_per_prim, a trail's length and its distribution.
distance_to: A SOP whose surface each point's distance is measured
to (distance_to in the reply: min / max / mean, percentiles):
particles crawling on or hovering over a mesh. Point class; the
scene is not changed. Both are taken in their own SOP space:
object transforms are not applied, so use it within one object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | ||
| frames | No | ||
| unique | No | ||
| attribs | No | ||
| node_path | No | ||
| node_paths | No | ||
| distance_to | No | ||
| percentiles | No | ||
| attrib_class | No | point |