pcexport
VEX function
Writes data to a point cloud inside a pciterate or a pcunshaded loop.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
See also: pcwrite, pcopen, pciterate, pcunshaded
-
int pcexport(int handle, string channel_name, value [, "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.
This function writes to the channels of points opened with pcopen. 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:
| Name | Description |
|---|---|
int8, uint8 | 8 bit signed/unsigned integers |
int16, uint16 | 16 bit signed/unsigned integers |
int32, uint32 | 32 bit signed/unsigned integers |
int64, uint64 | 64 bit signed/unsigned integers |
real16 | 16 bit floating point values |
real32 | 32 bit floating point values |
real64 | 64 bit floating point values |
int, uint, real | Default precision integer/floating point values |