Set new Pivot points at center after having previously changed them in a transform POP

Hi,

I have a TOP which i have cut up into sections/tiles by cropping then i have converted them to POPs and pieced them all back together in the same layout using transform POPs them merging them. My intention is to then have each tile rotate and flip in 3d space using a force of some kind. I would have used replicator but the sections are all different shapes and sizes

However when reassembling all of the sections i altered the pivot points on each of the tiles in each tiles transform in in order to make the realignment and scaling of them back into the original image easier. This now means that when i apply any rotation or other transform its not happening from the center of the tile which is what I would like.

Is there a way to set a new pivot point or centre point without having the tile move from its current position? I have tried using the transform POP ‘Align’ page settings on a subsequent transform but this re-centres the tile completely. I see the transform has a second input for ‘origin’ but I’m not sure how that works and the snippets didn’t have an examples.
I could go back and redo the alignment of every section with pivot = to 0 but it was quite time consuming so id rather not have to if there’s an easier way.

Thanks!

The quick and dirty way of doing this is to use the following expressions in your pivot on the transform POP:

me.inputs[0].bounds(delayed=True).center.x
me.inputs[0].bounds(delayed=True).center.y
me.inputs[0].bounds(delayed=True).center.z

You can read more about that here:

It would likely be cleaner to do an attribute mapping but I guess for that you’d somehow need to calculate the centroid of the primitive and apply it for each point in the primitive.

1 Like