I’m trying to assign the color of a privative to the prim position. In SOPs it would be using a privative sop and then me.inputPrim.center[0] me.inputPrim.center[1] me.inputPrim.center[2] in the color fields. I just cant figure out how to do the same thing using pops.
Anyone have any suggestions?
Are you trying to assign the mesh’s center position to the Color attribute?
Just keep in mind that the word primitive means different things in SOPs and POPs.
- In SOPs, a primitive refers to surface types such as Polygon, Mesh, Particle, Curve, Sphere, Tube, Metaball, etc.
- In POPs, a primitive refers to geometry data types like Polygon (triangles/quads), Line Strip, or Point Primitive.
If your goal is to assign the center position to the Color attribute in POPs, one way to do it is to use a Math Mix POP. Set the Operation to A, and assign the built‑in attribute _BoundsCenterP to the Color attribute. This will transfer the geometry’s bounding-box center position into the Color attribute.
For more details, you can refer to this page