Houdini 12 Expression functions

Returns the average value of all the voxels in a volume.

Usage

volumeaverage(surface_node, prim_id)

surface_node is the full path of the surface node. prim_id is the primitive number of the volume primitive within the surface node.

Returns 0 if out of bound values are specified, or the given primitive is not a volume.

Examples

volumeaverage("/obj/geo1/isooffset1", 0)

On this page

Related topics