-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
layer position i am not getting extract position from psd #1
Comments
Hi @mraj32, what is the incorrect number you're seeing on output? |
I believe you have to rasterize all layers and layer effects to get the most accurate results. |
@bronzehedwick This script is awesome ! But I confirm the issue. The problem is that layerRef.bounds[0].value; only returns position of first pixel, it exclude a part of the layer (that you can see if you hit the Transform button. To reproduce you can create a smart object, and put a small rectangle inside it. You will see that exported data match the layer box, but not the layer transform box (which have the initial placement of our image). It would be nice if you can take a look, it seems that a solution is not as straightforward 😄 |
@X-Raym Thanks! And thanks for bumping the issue: I haven't had much time to work on this, but hopefully I'll be able to address this in the next few days. |
@bronzehedwick No problem ! Thanks for your quick answer ! There is a script function which solves this, maybe you will need to do that in a very different way, but maybe it can help a bit. |
Thanks! |
Script is working fine for image coordinates but When i try to extract the layer position i am not getting extract position from psd. can you help me getting correct data from psd. attached is the value expected'default text layer' as 43, 60.77 but i am getting different position. Advance thanks
The text was updated successfully, but these errors were encountered: