查看“︁编程语言/photoshop”︁的源代码
来自康健生活
←
编程语言/photoshop
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == [[文件:Adobe ps dom comm.jpg|400px|无框|无|Adobe ps dom comm]] {{Unknown|Adobe-CEP / CEP-Resources}} == 开发流程 == 开发模式判断 <pre> 开发模式: development 生产环境: production 测试环境: beta</pre> == 日志 == === CEF日志 === windows: <pre> C:\Users\365\AppData\Local\Temp\CEP7-PHXS.log</pre> === CEPHtmlEngine日志 === windows: <pre> C:\Users\365\AppData\Local\Temp\CEPHtmlEngine7-PHXS-18.1.1-net.qihoo.design.extension.log C:\Users\365\AppData\Local\Temp\CEPHtmlEngine7-PHXS-18.1.1-net.qihoo.design.extension-renderer.log</pre> === ScriptingListener plug-in === windows: <pre> C:\Users\365\Desktop\ScriptingListenerJS.log</pre> == CEP JavaScript库 == API 更改向后兼容。 * CSInterface.js * IMSInterface.js * Vulcan.js == ExtendScript == === 日志 === 使用 <code>$.writeln()</code> 与 <code>$.write()</code>。 {{Warning|console 未定义}} == ExtensionManifest == 非常重要 == 全局参数 == === app === [[/打印app参数|打印app参数]] === CSInterface === ==== cs.evalScript ==== ==== app.documents[] ==== <pre> backgroundLayer: undefined bitsPerChannel: {} colorProfileType: {} colorProfileName: "sRGB IEC61966-2.1" mode: {} componentChannels: undefined activeHistoryState: undefined activeHistoryBrushSource: undefined activeLayer: undefined activeChannels: undefined info: undefined printSettings: undefined fullName: {} height: {} managed: undefined saved: false name: "奇舞团1024.psd" path: {} quickMaskMode: false resolution: 72 selection: undefined width: {} histogram: [71535,7293,5468,3646,6469,5214,12183,11680,5003,12525,5398,6748,5388,14143,8384,11624,24381,3429,3230,3114,5720,3640,1221,1629,22467,1158,1153,3571,1436,1623,2773,2077,3484,4585,5683,3904,4154,8292,8442,5839,9008,8966,8784,7912,4083,6197,9375,5235,3243,3502,6795,2597,2191,2476,7599,2162,1984,10587,1354,1593,2474,2097,3794,3398,3559,5777,8850,10196,11919,4187,4749,4922,3912,8149,13649,11313,12215,2526,5300,3627,4856,5406,21288,7746,16727,8153,7885,5069,4892,3826,6051,5245,6941,3454,4765,3015,3973,2262,2001,1680,1866,2102,4390,5216,9510,7924,19941,6510,13280,7135,6444,7524,12219,1076,1169,1106,1181,1184,1172,1738,1086,811,1025,951,637,674,1109,1526,899,944,810,361,1083,1045,949,1384,1146,1112,1687,1045,2216,475,1930,2515,2234,1618,1340,1292,1648,1405,694,2292,1924,702,770,1019,541,1158,601,1447,882,672,717,936,1039,817,702,334,465,533,605,1288,879,1028,1608,435,468,254,9763,384,461,720,302,441,427,486,363,917,606,593,537,926,878,1105,1114,1120,5314,1139,502,1556,1908,634,1297,1358,1917,1766,3203,646,6812,1964,1012,2690,2112,2413,6310,430,2030,3254,1939,2577,1321,2484,2624,1399,1630,5981,6205,633,612,271,416,380,272,413,1976,561,1084,218,583,467,296,292,180,358,210,6174,300,407,307,196,318,142,690,1344,492,31687] pixelAspectRatio: 1 xmpMetadata: undefined measurementScale: undefined id: 255 layers: undefined layerSets: undefined artLayers: undefined channels: undefined guides: undefined historyStates: undefined layerComps: undefined pathItems: undefined countItems: undefined colorSamplers: undefined cloudDocument: false cloudWorkAreaDirectory: undefined typename: "Document" parent: undefined parseAppDocument: [{}] </pre> 参考: * https://theiviaxx.github.io/photoshop-docs/Photoshop/Document.html == photoshop dom == === 图层集合 === ==== 图层(ArtLayers) ==== 文档根目录的图层的集合。 <syntaxhighlight lang="javascript"> for (var i =0; i< app.activeDocument.artLayers.length; i += 1) { $.writeln("图层: " + app.activeDocument.artLayers[i].name); }</syntaxhighlight> ==== 图层组(LayerSets) ==== 图层组的合集 ==== 图层组(layers) ==== 所有图层和图层组的集合 === 遍历图层 === <syntaxhighlight lang="javascript"> function getLayers(layers, count) { var out = ''; for (var i =0; i<layers.length; i++) { if(layers[i].typename == 'LayerSet') { out += '\n ' + new Array(count + 1).join(' ') + '[' + layers[i].name + ']'; out += getLayers(layers[i].layers, count + 1); } else { out += '\n ' + new Array(count + 1).join(' ') + layers[i].name; } } return out; } $.writeln(getLayers(app.activeDocument.layers, 0));</syntaxhighlight> == 事件 == == ID == <pre> * charIDToTypeID: 从四个字符的代码转换为运行时ID Converts from a four character code to a runtime ID * typeIDToCharID: * typeIDToStringID: * stringIDToTypeID: </pre> {| class="wikitable" |- | [[/charIDToTypeID|charIDToTypeID]] || 示例 || 示例 |} == debug == [[chrome://inspect/#devices|chrome 端口调试]] == 错误捕获 == == Jsxbin == 由 ExtendScript Toolkit(ESTK)创建的二进制脚本,该工具用于向 Adobe Creative Suite(CS)应用程序添加扩展。 === 反编译 Jsxbin 文件 === == manifest.xml == [[/manifest.xml|manifest.xml]] == 开发记录 == * [[/开发记录|开发记录]] == 开题 == * [[/Photoshop插件开发版本差异|Photoshop插件开发版本差异]] == 参考 == * https://console.adobe.io/servicesandapis * https://github.com/AdobeDocs * https://github.com/Adobe-CEP * [https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_8.x/Documentation/CEP%208.0%20HTML%20Extension%20Cookbook.md#debugging-unsigned-extensions https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_8.x/Documentation/CEP 8.0 HTML Extension Cookbook.md#debugging-unsigned-extensions] * https://helpx.adobe.com/photoshop/kb/downloadable-plugins-and-content.html * https://www.adobe.com/devnet/photoshop/scripting.html * https://github.com/yearbook/extendscript-api-documentation * https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html * https://github.com/ExtendScript/wiki/wiki * [http://www.jongware.com/idjshelp.html InDesign JavaScript参考指南] * https://theiviaxx.github.io/photoshop-docs/ * https://www.ps-scripts.com/ * https://www.kirupa.com/motiongraphics/ps_scripting.htm == adobe 参考规范文件 == * [[File:photoshop_cc_2014_applescript_ref.pdf]] * [[File:photoshop_cc_2014_applescript_ref_2.pdf]] * [[File:photoshop_cc_2014_scripting-guide.pdf]] * [[File:photoshop_cc_2014_scripting-guide_2.pdf]] * [[File:photoshop_cc_2014_scriptref_js.pdf]] * [[File:photoshop_cc_2014_scriptref_js_2.pdf]] * [[File:photoshop_cc_2014_scriptref_vbs.pdf]] * [[File:photoshop_cc_2014_scriptref_vbs_2.pdf]] * [[File:Photoshop_CS2_AppleScriptReferenceGuide.pdf]] * [[File:Photoshop_CS2_JavaScriptReferenceGuide.pdf]] * [[File:Photoshop_CS2_ScriptingGuide.pdf]] * [[File:Photoshop_CS2_VisualBasicReferenceGuide.pdf]] * [[File:photoshop_cs3_applescript_ref.pdf]] * [[File:photoshop_cs3_javascript_ref.pdf]] * [[File:photoshop_cs3_scripting_guide.pdf]] * [[File:photoshop_cs3_vbscript_ref.pdf]] * [[File:photoshop_cs4_applescript_ref.pdf]] * [[File:photoshop_cs4_javascript_ref.pdf]] * [[File:photoshop_cs4_scripting_guide.pdf]] * [[File:photoshop_cs4_vbscript_ref.pdf]] * [[File:photoshop_cs5_applescript_ref.pdf]] * [[File:photoshop_cs5_javascript_ref.pdf]] * [[File:photoshop_cs5_scripting_guide.pdf]] * [[File:photoshop_cs5_vbscript_ref.pdf]] * [[File:photoshop-2020-applescript-ref.pdf]] * [[File:photoshop-2020-javascript-ref.pdf]] * [[File:photoshop-2020-scripting-guide.pdf]] * [[File:photoshop-2020-vbs-ref.pdf]] * [[File:photoshop-cc-2015-applescript-ref.pdf]] * [[File:photoshop-cc-2015-javascript-ref.pdf]] * [[File:photoshop-cc-2015-scripting-guide.pdf]] * [[File:photoshop-cc-2015-vbs-ref.pdf]] * [[File:photoshop-cc-2019-applescript-ref.pdf]] * [[File:photoshop-cc-2019-javascript-ref.pdf]] * [[File:photoshop-cc-2019-scripting-guide.pdf]] * [[File:photoshop-cc-2019-vbs-ref.pdf]] * [[File:Photoshop-CS6-AppleScript-Ref.pdf]] * [[File:Photoshop-CS6-JavaScript-Ref.pdf]] * [[File:Photoshop-CS6-Scripting-Guide.pdf]] * [[File:Photoshop-CS6-VBScript-Ref.pdf]]
此页面嵌入的页面:
模板:Meta box
(
查看源代码
)
模板:Shc out
(
查看源代码
)
模板:Shc out/style.css
(
查看源代码
)
模板:Unknown
(
查看源代码
)
模板:Version
(
查看源代码
)
模板:Version/style.css
(
查看源代码
)
模板:Warning
(
查看源代码
)
模板:Warning/style.css
(
查看源代码
)
返回
编程语言/photoshop
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。