Extendscript - Text layer alignment / anchorpoint
Hi Friends!
Neck deep building a script to batch out a bunch of numerical comps, wanting to set a text layer to be dead center. Have managed to get a justification param set and even user defined, however want to script the equivalent of using the align palette and selecting "Align Horizontally" and " Align Vertically"
Have tried to set the anchor point by inserting an expression onto the layer (via extend-script) which I've made work for an image layer, but sad times with a text layer - some of my research leads me to believe this wont work for text layers. Also tried sourceRectAtTime with no luck.
Hoping someone has some thoughts or solution for this as I'm turning out several hundred comps every time this script runs so manually setting this isn't an option.
Thanks!
