npoints VEX function

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. int npoints(int input_number)

    (SOP context) Returns the number of points in the input specified, or 0 if there is no input connected.

  2. int npoints(string filename)

    Returns the number of points for all primitives in the geometry file.