ps慢门堆栈叠加脚本—类似多重曝光效果的做法

上传人:mg****85 文档编号:34186422 上传时间:2018-02-21 格式:DOCX 页数:5 大小:88.21KB
返回 下载 相关 举报
ps慢门堆栈叠加脚本—类似多重曝光效果的做法_第1页
第1页 / 共5页
ps慢门堆栈叠加脚本—类似多重曝光效果的做法_第2页
第2页 / 共5页
ps慢门堆栈叠加脚本—类似多重曝光效果的做法_第3页
第3页 / 共5页
ps慢门堆栈叠加脚本—类似多重曝光效果的做法_第4页
第4页 / 共5页
ps慢门堆栈叠加脚本—类似多重曝光效果的做法_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《ps慢门堆栈叠加脚本—类似多重曝光效果的做法》由会员分享,可在线阅读,更多相关《ps慢门堆栈叠加脚本—类似多重曝光效果的做法(5页珍藏版)》请在金锄头文库上搜索。

1、Ps 慢门堆栈叠加脚本类似多重曝光效果的做法以下为脚本全文(版本:20120911) ,使用时请选择全部的蓝色字体,另存为StarTails.jsx:/*功能描述:本脚本(StarTails.jsx)可以叠加星轨、 实现星轨拖尾效果、实现慢快门效果在 XP+CS5(32bit)和 WIN7+CS6(64bit&extended)上测试通过,能够正常运行 本脚本不需要 extended 版本的 Photoshop 就可运行,而且运行速度更快使用说明:一.将连拍的多个文件转化为图层,使用 Photoshop 的 文件- 脚本-将文件载入堆栈文件数不能(也不建议) 超过 100,超过的话请拆分并多次

2、运行;文件数也不能是 2 个或者以下,因为没有这个必要吧?二.将本段脚本存成 StarTails.jsx 文件,通过 Photoshop 的文件-脚本-“浏览”打开StarTails.jsx三.出现 StarTails 的界面后,根据需要选择不同的功能并进行简单的设置1.叠加星轨:选取最大值,保持最小/ 最大不透明度为 100%不用修改,不需要复选进行图层倒置2.叠加星轨并实现星轨的拖尾效果:选取 最大值,修改最小/ 最大不透明度,根据需要复选进行图层倒置 3.叠加连拍的图片,实现慢快门效果:选取 平均值即可(注: 最大值和 平均值选项是模拟堆栈模式的 最大值和 平均值,效果几乎相同,但不完全

3、等同)此脚本 Free,使用和传播意味着你已经充分读懂了本脚本的含义,修改和传播请尽量保留注释和履历原创作者:XYZ(半岛雪人)最新版本:20120911修改履历:1.创建,实现叠加星轨和星轨拖尾效果 XYZ 201208262.增加了慢门效果的实现,修改 UI,代码优化 XYZ 20120911*/*Script Begin*/main();function main() var dlg = new Window(dialog, StarTails);dlg.alignChildren = center;dlg.orientation = column; dlg.msgPnl = dlg.a

4、dd(group); dlg.msgPnl = dlg.add(panel, undefined, 参数设置);dlg.msgPnl.blendmode = dlg.msgPnl.add(group); dlg.msgPnl.opacityMin = dlg.msgPnl.add(group); dlg.msgPnl.opacityMax = dlg.msgPnl.add(group); dlg.msgPnl.sort = dlg.msgPnl.add(group);dlg.btnPnl = dlg.add(group);dlg.btnPnl.okBtn = dlg.btnPnl.add(bu

5、tton, undefined, 确定, name:ok);with (dlg.msgPnl) alignChildren = fill;blendmode.st = blendmode.add(statictext, undefined, 图层混合模式);blendmode.blendmode1 = blendmode.add(radiobutton, undefined, 最大值);blendmode.blendmode2 = blendmode.add(radiobutton, undefined, 平均值);blendmode.blendmode1.value = true;opaci

6、tyMin.st = opacityMin.add(statictext, undefined, 最小不透明度(%);opacityMin.et = opacityMin.add(edittext, undefined, ,multiline:false);opacityMin.et.preferredSize = 40,20;opacityMin.et.text= 100;opacityMax.st = opacityMax.add(statictext, undefined, 最大不透明度(%);opacityMax.et = opacityMax.add(edittext, undefi

7、ned, ,multiline:false);opacityMax.et.preferredSize = 40,20;opacityMax.et.text = 100;sort.userOption = sort.add(checkbox, undefined, 进行图层倒置);sort.userOption.value = false;blendmode.blendmode2.onClick = function()opacityMax.st.visible = false;opacityMax.et.visible = false;opacityMin.st.visible = false

8、;opacityMin.et.visible = false;sort.userOption.visible = false;blendmode.blendmode1.onClick = function()opacityMax.st.visible = true;opacityMax.et.visible = true;opacityMin.st.visible = true;opacityMin.et.visible = true; sort.userOption.visible = true;/end withif ( dlg.show() = 1)var opacityMax = pa

9、rseInt(dlg.msgPnl.opacityMax.et.text);var opacityMin = parseInt(dlg.msgPnl.opacityMin.et.text);var sortOption = dlg.msgPnl.sort.userOption.value;var blendmode1 = dlg.msgPnl.blendmode.blendmode1.value;var blendmode2 = dlg.msgPnl.blendmode.blendmode2.value;var layerSum = app.activeDocument.artLayers.l

10、ength;if (layerSum 100)alert(抱歉!图层总数超过 100,请减少图层数后重新运行);return;if (layerSum = 1 & opacityMax = 1 & opacityMin 0;layerIndex- )/set opacity from bottom to topapp.activeDocument.layerslayerIndex-1.opacity = parseInt(opacityMax-(layerSum-layerIndex)*eachLayerOpacity);app.activeDocument.layerslayerIndex-

11、1.blendMode = BlendMode.LIGHTEN ;/blend mode can be modified to NORMAL/DISSOLVE/DARKEN/MULTIPLY/COLORBURN/LINEARBURN/DARKERCOLOR/LIGHTEN/SCREEN/COLORDODGE/LINEARDODGE/LIGHTERCOLOR/OVERLAY/SOFTLIGHT/HARDLIGHT/VIVIDLIGHT/LINEARLIGHT/PINLIGHT/HARDMIX/DIFFERENCE/EXCLUSION/SUBTRACT/DIVIDE/HUE/SATURATION/

12、COLORBLEND/LUMINOSITY/end of set opacityapp.activeDocument.flatten();alert(完毕!别忘了存盘哦!);/end of elseelsealert (输入的数字不在 1-100 之间,请重新运行脚本);else if ( blendmode2 )/average(normal)while (layerSum != 1)app.activeDocument.layers0.opacity = 50;/set top layer opacity to 50%app.activeDocument.layers0.merge();/

13、merge down top layerlayerSum = app.activeDocument.artLayers.length;/get current layer sumif (layerSum 2 )app.activeDocument.layers0.move(app.activeDocument.layerslayerSum-1,ElementPlacement.PLACEAFTER);/move top layer to bottom/end of whilealert(完毕!别忘了存盘哦!);else/null/end of if dlg.show/end of main/*Script End*/Ps 自带的做法:在 PS 里面文件菜单下:脚本 将文件载入堆栈 选择你拍的若干张图片后将左下角载入图层后创建智能对象的勾选上后确定 图层菜单下智能对象 堆栈模式 最大值(平均值) 。然后你就会看到最终的合成大片!

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号