var _doc = app.activeDocument
_doc.views[0].zoom = 1
var _viewWidth = _doc.views[0].bounds[2] - _doc.views[0].bounds[0]
var _viewHeight = _doc.views[0].bounds[1] - _doc.views[0].bounds[3]
for (var i = 0; i < _doc.pathItems.length; i++) {
_doc.views[0].centerPoint = [
_doc.pathItems[i].left + _doc.pathItems[i].width / 2,
_doc.pathItems[i].top - _doc.pathItems[i].height / 2
]
if (_doc.pathItems[i].width > _doc.pathItems[i].height) {
_doc.views[0].zoom = _viewWidth / _doc.pathItems[i].width * 0.8
} else {
_doc.views[0].zoom = _viewHeight / _doc.pathItems[i].height * 0.8
}
alert("這是第" + (i+1) + "個")
}
承擔因您的行為而導致的法律責任,
本站有權保留或刪除有爭議評論。
參與本評論即表明您已經(jīng)閱讀并接受
上述條款。