Point Cloud Write
VEX node
This function writes data for the current shading point out to a point cloud file.
See also: Point Cloud Open, File
This VOP uses the name of the output point cloud file and any number of label, value, pairs to write the data into a point cloud file. Point cloud files are useful for calculating subsurface scattering, ambient occlusion and indirect diffuse.
Inputs
|
filename |
The name of the file to write the point cloud into. These should use a .pc extension. Houdini uses the extension to determine how to import the file. |
|
ch1 |
This string labels the attribute to save in |
|
d1 |
This is the data (float, integer, vector, color, point, normal, whatever) to put in the channel, named above, of the point cloud, |
|
ch2 |
This string labels the next attribute to save in |
|
d2 |
This is the data (float, integer, vector, color, point, normal, whatever) to put in the channel, named above, of the point cloud, |
More pairs may be added as needed.
Options
|
interpolate |
To use this option, add a channel labeled Note
interpolate cannot be used as the name of any data channel. |
Outputs
|
success |
This is an integer, 0 for failed and 1 for success. If this operation fails, first check the filename path is correct and that the permissions allow writing to that file. |
Usages in other examples
| Example name | Example for |
|---|