gpt4 book ai didi

javascript - Photoshop 脚本 : Coordinates of smart objects

转载 作者:行者123 更新时间:2023-11-28 06:20:33 26 4
gpt4 key购买 nike

我对 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com