SCRIPT : Layer Positions and Dimensions

S
Posted By
SunShine
Feb 5, 2008
Views
1004
Replies
0
Status
Closed
Hi all,

I try in a javascript script to change the position of a layer, or the content of the layer. Actually, I try to align two layers, and I want to use the applyOffset or translate method ( I didn’t find another methods). But I can’t know the x and y positions of the layers, neither the with and the height. So I can’t calculate the positions offset.
I didn’t see layer methods or properties that return theses informations.

So, how I can do to align two layers ?

Thanks

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections