Houdini 12 VEX VEX functions

Writes data to a point cloud inside a pciterate or a pcunshaded loop.

  1. int pcexport(int handle, string channel_name, value [, "storage", string storage_type])

  2. int pcexport(int handle, string channel_name, vector value, float radius [, "storage", string storage_type])

Returns 1 if the export succeeded or 0 if the export failed. The export will fail if channel_name is not read-write or if (in the version of pcexport taking a radius) the point being exported is at a distance less than the specified radius from a point that is already in the point cloud.

This function writes to the channels of points opened with pcopen or pcgenerate. The second version of this function takes a radius parameter and uses it to accept or reject the point being exported according to its distance to the points that are already in the point cloud. It must be separated from all other points by at least the specified radius. To write new point data into a point cloud file, use pcwrite.

Storage type

If you add the storage optional keyword, the next argument specifies a storage_type for the data. Storage types are the standard tile based format data types:

NameDescription
int8, uint88 bit signed/unsigned integers
int16, uint1616 bit signed/unsigned integers
int32, uint3232 bit signed/unsigned integers
int64, uint6464 bit signed/unsigned integers
real1616 bit floating point values
real3232 bit floating point values
real6464 bit floating point values
int, uint, realDefault precision integer/floating point values

Contexts: all

Related topics