Define a custom POP operator with a program that edits particle attributes.
The POP context has the same variables and functions as the SOP context. Both of these contexts allow processing of point attribute data. With the POP context, the points are typically used in a particle system, however, this is not a requirement of the context. In general, a function written for POPs will work as a SOP or vice versa.
Export variables in the POP/SOP contexts will cause new attributes to be created on the geometry. The attribute will have the name and size of the export variable.
Color (RGB) of the current point.
Current time (in seconds).
Acceleration of the current point.
Expected lifetime (in seconds) of the current point. A particle can die earlier than expected if a collision or some other event occurs.
Position of the current point.
ID attribute. Warning: if you modify this variable, you can get duplicate IDs for particles.
Velocity of the current point.
Point number of the point being processed.
State of the current particle. This is an integer bit field with the following flags:
This bit-field may change in the future. See
Total number of points geometry.
Age of the current point (how many seconds a particle has been alive).
Time increment between frames (SOP context)/Time increment for particle simulations (POP context).
Current frame. This may not be an integer value.