没有合适的资源?快使用搜索试试~ 我知道了~
首页Adobe Photoshop CS6 JavaScript脚本参考指南
Adobe Photoshop CS6 JavaScript脚本参考指南
需积分: 19 25 下载量 26 浏览量
更新于2024-07-26
收藏 1.9MB PDF 举报
"Photoshop-CS6-JavaScript-Ref"
这篇文档是Adobe Creative Suite 6 Photoshop JavaScript脚本编程参考指南,适用于Windows和Macintosh操作系统。它涵盖了Photoshop CS6中JavaScript脚本的主要功能和用法,是开发人员和高级用户进行自动化工作流程、自定义功能和扩展Photoshop功能的重要资源。
在Photoshop CS6中,JavaScript是一种强大的工具,允许用户通过编写脚本来控制和操作软件的许多方面。以下是一些关键知识点:
1. **对象模型**:JavaScript在Photoshop中的对象模型定义了所有可编程的对象,如文档(Documents)、图层(Layers)、选区(Selections)等。了解这些对象及其属性和方法是编写有效脚本的基础。
2. **基本语法**:JavaScript的基本语法包括变量声明、数据类型(如字符串、数字、布尔值等)、流程控制(如条件语句和循环)以及函数定义。这些构成了编写脚本的基础结构。
3. **Photoshop事件**:脚本可以响应Photoshop中的各种事件,例如文件打开、保存或关闭时的事件。通过监听和处理这些事件,可以实现自动化工作流程。
4. **命令和对话**:JavaScript可以调用Photoshop内置的命令,如打开、保存、复制、粘贴等,也可以创建和控制对话框来获取用户输入。
5. **颜色和度量单位**:JavaScript支持Photoshop的颜色模式和度量单位,允许脚本精确地处理颜色和尺寸。
6. **图层操作**:JavaScript提供了丰富的API来操作图层,包括创建、删除、重命名、调整大小、变换、组合和应用效果。
7. **选择和遮罩**:通过脚本,可以创建、修改和使用选择区域,以及应用遮罩,进行复杂的图像编辑操作。
8. **滤镜和特效**:可以调用Photoshop的滤镜库,并在脚本中应用它们,创建自定义的图像处理效果。
9. **批处理**:使用JavaScript,可以编写批处理脚本,批量处理多个文件,执行相同的操作,节省大量手动工作的时间。
10. **错误处理**:编写脚本时,应考虑错误处理机制,以确保在遇到问题时脚本能适当地恢复或给出反馈。
请注意,此文档受Adobe Systems Incorporated的版权保护,未经许可,不得以任何形式复制或传播。使用此文档中的信息应遵循Adobe提供的许可证条款。
在实际应用中,开发者应结合实际需求,参照此JavaScript参考指南来编写适合自己的Photoshop脚本,以提高工作效率并实现个性化的图像编辑功能。由于篇幅限制,这里仅列举了部分核心知识点,详细内容可深入阅读原文档获取完整信息。
Adobe Photoshop CS6
JavaScript Scripting Reference 16
includeCopyright........................................................................................................................................................ 111
includeCredits.............................................................................................................................................................. 111
includeFilename.......................................................................................................................................................... 111
includeTitle ................................................................................................................................................................... 111
numericLinks................................................................................................................................................................ 111
resizeConstraint .......................................................................................................................................................... 112
resizeImages................................................................................................................................................................. 112
typename ...................................................................................................................................................................... 112
GalleryOptions............................................................................................................................................................................ 113
Properties............................................................................................................................................................................... 113
addSizeAttributes....................................................................................................................................................... 113
bannerOptions ............................................................................................................................................................ 113
customColorOptions................................................................................................................................................. 113
emailAddress................................................................................................................................................................ 113
imagesOptions ............................................................................................................................................................ 113
includeSubFolders ..................................................................................................................................................... 113
layoutStyle .................................................................................................................................................................... 113
preserveAllMetadata................................................................................................................................................. 113
securityOptions ........................................................................................................................................................... 113
thumbnailOptions...................................................................................................................................................... 113
typename ...................................................................................................................................................................... 113
useShortExtension ..................................................................................................................................................... 113
useUTF8Encoding ...................................................................................................................................................... 113
GallerySecurityOptions ........................................................................................................................................................... 114
Properties............................................................................................................................................................................... 114
content ........................................................................................................................................................................... 114
font................................................................................................................................................................................... 114
fontSize........................................................................................................................................................................... 114
opacity............................................................................................................................................................................ 114
text................................................................................................................................................................................... 114
textColor ........................................................................................................................................................................ 114
textPosition................................................................................................................................................................... 114
textRotate...................................................................................................................................................................... 114
typename ...................................................................................................................................................................... 114
GalleryThumbnailOptions...................................................................................................................................................... 115
Properties............................................................................................................................................................................... 115
border ............................................................................................................................................................................. 115
caption............................................................................................................................................................................ 115
columnCount ............................................................................................................................................................... 115
dimension...................................................................................................................................................................... 115
font................................................................................................................................................................................... 115
fontSize........................................................................................................................................................................... 115
includeCopyright........................................................................................................................................................ 115
includeCredits.............................................................................................................................................................. 115
includeFilename.......................................................................................................................................................... 115
includeTitle ................................................................................................................................................................... 115
rowCount....................................................................................................................................................................... 115
size ................................................................................................................................................................................... 115
typename ...................................................................................................................................................................... 115
GIFSaveOptions.......................................................................................................................................................................... 116
Properties.....................................................................................................................
.......................................................... 116
Adobe Photoshop CS6
JavaScript Scripting Reference 17
colors............................................................................................................................................................................... 116
dither............................................................................................................................................................................... 116
ditherAmount .............................................................................................................................................................. 116
forced.............................................................................................................................................................................. 116
interlaced....................................................................................................................................................................... 116
matte............................................................................................................................................................................... 116
palette............................................................................................................................................................................. 116
preserveExactColors.................................................................................................................................................. 116
transparency................................................................................................................................................................. 116
typename ...................................................................................................................................................................... 116
GrayColor...................................................................................................................................................................................... 117
Properties............................................................................................................................................................................... 117
gray.................................................................................................................................................................................. 117
typename ...................................................................................................................................................................... 117
Guide.............................................................................................................................................................................................. 118
Properties............................................................................................................................................................................... 118
direction......................................................................................................................................................................... 118
coordinate..................................................................................................................................................................... 118
Guides............................................................................................................................................................................................ 119
Properties............................................................................................................................................................................... 119
length.............................................................................................................................................................................. 119
parent.............................................................................................................................................................................. 119
typename ...................................................................................................................................................................... 119
Methods ................................................................................................................................................................................. 119
add ................................................................................................................................................................................... 119
getByName ................................................................................................................................................................... 119
HistoryState................................................................................................................................................................................. 120
Properties............................................................................................................................................................................... 120
name................................................................................................................................................................................ 120
parent.............................................................................................................................................................................. 120
snapshot ........................................................................................................................................................................ 120
typename ...................................................................................................................................................................... 120
HistoryStates ............................................................................................................................................................................... 121
Properties............................................................................................................................................................................... 121
length.............................................................................................................................................................................. 121
parent.............................................................................................................................................................................. 121
typename ...................................................................................................................................................................... 121
Methods ................................................................................................................................................................................. 121
getByName ................................................................................................................................................................... 121
HSBColor....................................................................................................................................................................................... 122
Properties............................................................................................................................................................................... 122
brightness...................................................................................................................................................................... 122
hue ................................................................................................................................................................................... 122
saturation ...................................................................................................................................................................... 122
typename ...................................................................................................................................................................... 122
IndexedConversionOptions .................................................................................................................................................. 123
Properties............................................................................................................................................................................... 123
colors............................................................................................................................................................................... 123
dither............................................................................................................................................................................... 123
ditherAmount .............................................................................................................................................................. 123
forced.........................................................................................................................
..................................................... 123
Adobe Photoshop CS6
JavaScript Scripting Reference 18
matte............................................................................................................................................................................... 123
palette............................................................................................................................................................................. 123
preserveExactColors.................................................................................................................................................. 123
transparency................................................................................................................................................................. 123
typename ...................................................................................................................................................................... 123
JPEGSaveOptions ...................................................................................................................................................................... 124
Properties............................................................................................................................................................................... 124
embedColorProfile..................................................................................................................................................... 124
formatOptions ............................................................................................................................................................. 124
matte............................................................................................................................................................................... 124
quality ............................................................................................................................................................................. 124
scans................................................................................................................................................................................ 124
typename ...................................................................................................................................................................... 124
LabColor ....................................................................................................................................................................................... 125
Properties............................................................................................................................................................................... 125
a......................................................................................................................................................................................... 125
b ........................................................................................................................................................................................ 125
l.......................................................................................................................................................................................... 125
typename ...................................................................................................................................................................... 125
LayerComp................................................................................................................................................................................... 126
Properties............................................................................................................................................................................... 126
appearance ................................................................................................................................................................... 126
comment ....................................................................................................................................................................... 126
name................................................................................................................................................................................ 126
parent.............................................................................................................................................................................. 126
position .......................................................................................................................................................................... 126
selected .......................................................................................................................................................................... 126
typename ...................................................................................................................................................................... 126
visibility .......................................................................................................................................................................... 126
Methods ................................................................................................................................................................................. 126
apply................................................................................................................................................................................ 126
recapture ....................................................................................................................................................................... 126
remove............................................................................................................................................................................ 126
resetfromComp ........................................................................................................................................................... 126
LayerComps................................................................................................................................................................................. 127
Properties............................................................................................................................................................................... 127
length.............................................................................................................................................................................. 127
parent.............................................................................................................................................................................. 127
typename ...................................................................................................................................................................... 127
Methods ................................................................................................................................................................................. 127
add ................................................................................................................................................................................... 127
getByName ................................................................................................................................................................... 127
removeAll ...................................................................................................................................................................... 127
Layers............................................................................................................................................................................................. 128
Properties............................................................................................................................................................................... 128
length.............................................................................................................................................................................. 128
parent.............................................................................................................................................................................. 128
typename ...................................................................................................................................................................... 128
Methods ................................................................................................................................................................................. 128
getByName ................................................................................................................................................................... 128
removeAll ......................................................................................................................
................................................ 128
Adobe Photoshop CS6
JavaScript Scripting Reference 19
LayerSet ........................................................................................................................................................................................ 129
Properties............................................................................................................................................................................... 129
allLocked........................................................................................................................................................................ 129
artLayers......................................................................................................................................................................... 129
blendMode.................................................................................................................................................................... 129
bounds............................................................................................................................................................................ 129
enabledChannels........................................................................................................................................................ 129
layers ............................................................................................................................................................................... 129
layerSets......................................................................................................................................................................... 129
linkedLayers.................................................................................................................................................................. 129
name................................................................................................................................................................................ 129
opacity............................................................................................................................................................................ 129
parent.............................................................................................................................................................................. 129
typename ...................................................................................................................................................................... 129
visible .............................................................................................................................................................................. 129
Methods ................................................................................................................................................................................. 130
duplicate........................................................................................................................................................................ 130
link.................................................................................................................................................................................... 130
merge.............................................................................................................................................................................. 130
move................................................................................................................................................................................ 130
remove............................................................................................................................................................................ 130
resize ............................................................................................................................................................................... 130
rotate............................................................................................................................................................................... 130
translate ......................................................................................................................................................................... 130
unlink .............................................................................................................................................................................. 130
LayerSets ...................................................................................................................................................................................... 131
Properties............................................................................................................................................................................... 131
length.............................................................................................................................................................................. 131
parent.............................................................................................................................................................................. 131
typename ...................................................................................................................................................................... 131
Methods ................................................................................................................................................................................. 131
add ................................................................................................................................................................................... 131
getByName ................................................................................................................................................................... 131
removeAll ...................................................................................................................................................................... 131
MeasurementLog ...................................................................................................................................................................... 133
Methods ................................................................................................................................................................................. 133
exportMeasurements................................................................................................................................................ 133
deleteMeasurements ................................................................................................................................................ 133
MeasurementScale ................................................................................................................................................................... 134
Properties............................................................................................................................................................................... 134
pixelLength................................................................................................................................................................... 134
logicalLength ............................................................................................................................................................... 134
logicalUnits ................................................................................................................................................................... 134
NoColor......................................................................................................................................................................................... 135
Properties............................................................................................................................................................................... 135
typename ...................................................................................................................................................................... 135
Notifier........................................................................................................................................................................................... 136
Properties............................................................................................................................................................................... 136
event................................................................................................................................................................................ 136
eventClass ..................................................................................................................................................................... 136
eventFile ......................................................................................................................
.................................................. 136
Adobe Photoshop CS6
JavaScript Scripting Reference 20
parent.............................................................................................................................................................................. 136
typename ...................................................................................................................................................................... 136
Methods ................................................................................................................................................................................. 136
remove............................................................................................................................................................................ 136
Notifiers......................................................................................................................................................................................... 137
Properties............................................................................................................................................................................... 137
length.............................................................................................................................................................................. 137
parent.............................................................................................................................................................................. 137
typename ...................................................................................................................................................................... 137
Methods ................................................................................................................................................................................. 137
add ................................................................................................................................................................................... 137
removeAll ...................................................................................................................................................................... 137
PathItem ....................................................................................................................................................................................... 138
Properties............................................................................................................................................................................... 138
kind .................................................................................................................................................................................. 138
name................................................................................................................................................................................ 138
parent.............................................................................................................................................................................. 138
subPathItems ............................................................................................................................................................... 138
typename ...................................................................................................................................................................... 138
Methods ................................................................................................................................................................................. 138
deselect .......................................................................................................................................................................... 138
duplicate........................................................................................................................................................................ 138
fillPath............................................................................................................................................................................. 138
makeClippingPath...................................................................................................................................................... 139
makeSelection ............................................................................................................................................................. 139
remove............................................................................................................................................................................ 139
select ............................................................................................................................................................................... 139
strokePath ..................................................................................................................................................................... 139
PathItems ..................................................................................................................................................................................... 142
Properties............................................................................................................................................................................... 142
length.............................................................................................................................................................................. 142
parent.............................................................................................................................................................................. 142
typename ...................................................................................................................................................................... 142
Methods ................................................................................................................................................................................. 142
add ................................................................................................................................................................................... 142
getByName ................................................................................................................................................................... 142
removeAll ...................................................................................................................................................................... 142
PathPoint...................................................................................................................................................................................... 143
Properties............................................................................................................................................................................... 143
anchor............................................................................................................................................................................. 143
kind .................................................................................................................................................................................. 143
leftDirection.................................................................................................................................................................. 143
parent.............................................................................................................................................................................. 143
rightDirection............................................................................................................................................................... 143
typename ...................................................................................................................................................................... 143
PathPointInfo.............................................................................................................................................................................. 144
Properties............................................................................................................................................................................... 144
anchor............................................................................................................................................................................. 144
kind .................................................................................................................................................................................. 144
leftDirection.................................................................................................................................................................. 144
rightDirection.................................................................................................................
.............................................. 144
剩余230页未读,继续阅读
点击了解资源详情
点击了解资源详情
点击了解资源详情
2021-05-17 上传
2022-04-14 上传
2017-10-02 上传
点击了解资源详情
点击了解资源详情
112 浏览量
tiiger
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 近探拓客软件-实现日更新的全国工商数据采集的工具-工商数据采集工具免费下载V21.4.1
- telescope_hoogle:望远镜的Hoogle搜索集成
- passwordGenerator:此分配使用math.random为用户生成密码
- dotnet C# 根据椭圆长度和宽度和旋转角计算出椭圆中心点的方法.rar
- ProjectManager:.NET Core中的简单项目管理
- Muzisung_FE:这是无知项目前端的存储库。
- Mysis_DVM_Modeling:我的高级论文项目“为 Diluviana 的 Diel 垂直迁移模式建模”的代码和头脑风暴。
- torch_spline_conv-1.2.1-cp36-cp36m-linux_x86_64whl.zip
- CMTraerPhysics:Traer v3.0物理引擎的Objective-CCocoa端口; 与iOS演示应用程序
- bilingual-pdf:由英文PDF生成双语PDF,回归原生加速长篇英文阅读!
- js-demo:关于本人博客中关于js的使用的代码示例
- 清水混凝土模板支撑施工方案.zip
- 来自“菜鸟教程”JavaScript实例练习【二】web.zip
- 仿天猫静态页面 登陆/注册/首页/天猫超市页/购物车/手机列表页 Tmall.zip
- 淘特新闻管理系统 v4.0.4
- Class-33
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功