Old style primitive SOP in POP workflow

In the past if I wanted to take a bunch of primitives and scale them down to their centroids I could just use the primitive SOP to do this and just scale down. Now that the primitive POP is more for creating and deleting primitives rather than modifying them I’m curious what the best way of manipulating primitives individually is in a POP workflow.

I thought that perhaps I could use the analyze POP to create a centroid attribute and then use that as a map input to a transforms pivot point but analyze only creates attributes for points it seems.

I’m curious what the non-glsl approach would be…am I just missing something here? Perhaps we need a primitive transform POP or an ability to access primitive centroids in a transform POP.

Hello @Ennui
I don’t think there’s an easier way to compute a primitive’s center than by using GLSL. There’s an example in the POP snippets that shows how this can be done (GLSL Advanced POP/PerPrimTransform). Adding a Primitive Transform POP is on our list.

1 Like

PerPrimTransformWithMap.toe (4.7 KB)

Here’s a no GLSL way, the little trick is to use attribute convert with P from point to prim (gives you the average) to compute a pivot, then map in the transform POP.

Otherwise as @Guillaume.L said, it’s on our list.

2 Likes