没有合适的资源?快使用搜索试试~ 我知道了~
首页Photoshop CC 2014 JavaScript 脚本编程指南
收藏
"photoshop_scriptref_js"
Adobe Photoshop CC 2014 JavaScript Scripting Reference 提供了关于在Photoshop中进行高级脚本编程的详细信息,涵盖了如何利用JavaScript操作图像处理的各种功能。这本书针对Windows和Macintosh平台,是开发者和自动化任务创建者的宝贵资源。
在Photoshop中使用JavaScript,你可以实现以下高级功能:
1. **打开文档**:通过JavaScript,你可以自动打开一个或多个Photoshop文件,甚至可以设置打开时的参数,如是否显示警告、初始视图等。
2. **操作当前文档**:对活动文档进行各种操作,例如改变尺寸、分辨率、背景颜色,以及调整图像模式(RGB、CMYK等)。
3. **管理图层**:创建、删除、重命名、隐藏、锁定、解锁图层,以及调整图层的透明度、混合模式和不透明度。还能执行图层组合与图层样式的操作。
4. **处理通道**:访问和操作图像的不同通道,包括颜色通道、Alpha通道和专色通道。可以创建、编辑和合并通道以实现复杂的图像调整和效果。
5. **选择和遮罩**:创建和修改选择区域,如矩形、椭圆、自由变换等,并利用遮罩来保护特定图像区域不受后续操作的影响。
6. **画笔和绘图工具**:利用JavaScript控制画笔、橡皮擦、填充等工具进行绘制,设置笔刷大小、形状、硬度等属性。
7. **滤镜和效果**:应用内置滤镜和自定义效果,实现图像风格化、模糊、锐化、噪点减少等处理。
8. **文字操作**:添加文本图层,设置字体、字号、颜色、对齐方式,以及调整文字路径。
9. **批处理**:自动化执行一系列操作到一组文件上,节省大量手动工作的时间。
10. **导出和保存**:根据需求设置导出选项,如JPEG、PNG、PDF等格式,以及调整保存质量和压缩级别。
这个参考文档还包含了丰富的函数、对象和属性,帮助开发者理解Photoshop的JavaScript API。虽然文档中提到的所有信息均为Adobe Systems Incorporated所有,并受到版权保护,但其提供给用户使用,前提是遵守Adobe的许可条款。
请注意,此文档提供的信息是“按原样”提供的,可能会随时更新,且不提供任何明示或默示的保证。Adobe Systems Incorporated不对任何错误或不准确的内容承担责任。因此,开发者在使用这些脚本功能时应确保了解每个命令的正确用法和潜在影响,以避免可能的问题和损失。
Adobe Photoshop CC 2014
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 CC 2014
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 CC 2014
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 CC 2014
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 CC 2014
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页未读,继续阅读
相关推荐
qq_22099805
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功