javascript - Photoshop 脚本 : Coordinates of smart objects

标签 javascript coordinates photoshop

我对 PS 脚本有点陌生,而且我也不是程序员,所以我有一个非常基本的问题要问。

如何检索智能对象图层的位置坐标?当我尝试获取它们的位置时,我的脚本会为我提供它们的“光栅化”位置,而不考虑智能对象 Canvas 。有什么想法吗?

最佳答案

首先选择有问题的图层,然后运行这个小脚本:

tell application id "com.adobe.Photoshop"
    tell current document
        get bounds of current layer as integer
    end tell
end tell

关于javascript - Photoshop 脚本 : Coordinates of smart objects,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35580133/

相关文章:

c# - 使用平移和缩放计算正确的光标位置

javascript - "array is not a function"错误

python - Photoshop 操作脚本失败

javascript - 如何创建一个函数,通过 onmouseover 将我的段落更改为 img

javascript - Puppeteer:在异步函数中使用await 调用的javascript 函数中抛出自定义错误消息

swift - 使用 Polyline (Swift) 使用 MKMapView 绘制坐标

python - 在 Python 中创建二维坐标图

CSS - 段落格式 : justify last right

javascript - 获取2个元素之间的元素

javascript - 在 React 中刷新 setInterval