-
Expression for finding center of an object?
I’ve run a script that readjusts the anchor point to the center of an object (based on an alpha layer, I think), but it also aligns all the layers along the x or y or z axis (DistributeLayers). I need to retain the objects position, but just change the anchor point. I’m importing text layers with each letter being a different layer. The actual size of the object is the size of the comp (so that they retain their spacing and position from Illustrator), so unfortunately their anchor point is the center of the composition. The repositionAnchorPoint script also unfortunately seems to use the size of the imported object. There’s got to be a way to do this using the alpha channel, can anyone point me in the right direction?
Thanks
Dane