nprims expression function

Returns the number of primitives in a surface node.

Usage

nprims(name)

Returns -1 if the surface node cannot be cooked.