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
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
Related Tags
Must-have mockup pack for every graphic designer 🔥🔥🔥
Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.