Such as layer 1
The pixel size is 200
How to put the layer 2
Free transform change into 200
I'm sorry, my English is not very good
I just want to make the size of the layer 1 and layer 2 same
Free transform
Re: Free transform
You need 2 layers in document, where the higher layer is selected:
Code: Select all
lrs = activeDocument.layers
function wah(v) {return [v[2] - v[0], v[3] - v[1]]}
l0 = wah(lrs[0].bounds), l1 = wah(lrs[1].bounds)
lrs[0].resize((l1[0] / l0[0]) * 100, (l1[1] / l0[1]) * 100)
Re: Free transform
Thank you, thank you very much