咨询
会员说明 请登录
当前位置: 首页 > 教程软件

AE脚本学习

042、AE脚本-开始你的第一个AE脚本

https://zhuanlan.zhihu.com/p/3972520667ug视线点

006、AE脚本-如何判断AE中的图层是否是图层?

https://zhuanlan.zhihu.com/p/3927742667ug视线点
 

AE脚本折腾入门(一)

https://zhuanlan.zhihu.com/p/636226727ug视线点
7ug视线点
AE脚本学习7ug视线点
https://so.csdn.net/so/search?q=after&t=blog&u=m0_67316550
7ug视线点
 

使用扩展脚本在After Effects项目中获取合成名称

http://cn.voidcc.com/question/p-dnjvlejw-br.html7ug视线点
7ug视线点
AE脚本例句7ug视线点
https://www.kancloud.cn/zhenhuamcu/aejiaoben/10861027ug视线点
 

AE脚本一些用法

https://blog.csdn.net/xdhstc/article/details/523296167ug视线点
7ug视线点
1,在AE中创建文件夹:
7ug视线点
app.project.items.addFolder("myFolder");7ug视线点
7ug视线点
2,判断文件夹是否存在:7ug视线点
function judgeLayer(layername) {      for(var i = 1; i <= app.project.numItems; i++) {         if(app.project.item(i).name == layername)         {             return false;         }     }     return true; };7ug视线点
7ug视线点
3,找到一个文件夹对象:7ug视线点
function findFolderItemByName(name){           var found = false;           for (i = 1; i <= app.project.numItems; i++){               if (app.project.item(i).name == name && app.project.item(i) instanceof FolderItem ){                   var myFolder = app.project.item(i);                   found = myFolder;                   break                   }               }           return found;   }7ug视线点
7ug视线点
4,把文件或者文件夹放入一个父级文件夹中:7ug视线点
childFolder.parentFolder = findFolderItemByName("parentFolderName");7ug视线点
7ug视线点
5,获取电脑中某个文件夹中的内容:7ug视线点
var folderObj = new Folder("folderPath"); var moveFileList = folderObj.getFiles();7ug视线点
7ug视线点
6,导入序列文件到AE中:7ug视线点
var io = new ImportOptions(); io.file = new File("filePath"); io.sequence = true; io.forceAlphabetical = true; mySeq = app.project.importFile(io); myDuration = mySeq.duration;<span style="font-family: Arial, Helvetica, sans-serif;"> </span><span style="font-family: Arial, Helvetica, sans-serif;"> </span>7ug视线点
myDuration参数表示导入的帧数7ug视线点
7ug视线点
7,新建Comp:7ug视线点
var myComp = app.project.items.addComp("testComp", 1920, 1080, 1, 150/25, 25);7ug视线点
这里的150/25表示的是,总共150帧,因为addComp函数接受的参数的单位是秒。7ug视线点
7ug视线点
8,设置Comp的起始时间:7ug视线点
myComp.displayStartTime = 2/25;7ug视线点
这里是设置起始帧为17ug视线点
7ug视线点
9,将Comp中加Layer:7ug视线点
myComp.layers.add(myLayer);7ug视线点
7ug视线点
10,设置Comp中某层的某属性:7ug视线点
myComp.layers.byName("test").Scale.setValue([80,80]);7ug视线点
7ug视线点
11,将Comp中某层移到最下:7ug视线点
myComp.layers.byName("test").moveToEnd();7ug视线点
7ug视线点
12,设置某层的时间:7ug视线点
var nowF = (inComp.layer(1).outPoint - inComp.layer(1).inPoint); var tarF = timeDuration; var stretchValue = 100*tarF/nowF; inComp.layer(1).stretch = stretchValue;7ug视线点
7ug视线点
13,设置某层的matte7ug视线点
myLayer.trackMatteType= TrackMatteType.ALPHA7ug视线点
7ug视线点
14,给某层加特效7ug视线点
myLayer.Effects.addProperty("Roughen Edges")("Border").setValue(0); myLayer("Effects")("Roughen Edges")("Scale").setValue(170);7ug视线点
7ug视线点
15,加solid层7ug视线点
mySolidLayer = timeCodeComp.layers.addSolid([0,0,0],"solid",1920,1080,1,80/25);7ug视线点
7ug视线点
16,给solid层加矩形mask7ug视线点
newMask = mySolidLayer.Masks.addProperty("ADBE Mask Atom"); newMask.maskMode = MaskMode.ADD; newMask.color = [1,1,0]; myProperty = newMask.property("ADBE Mask Shape"); myShape = myProperty.value; myShape.vertices = [[600, 70], [600,164], [38,164],[38,70]];     myShape.closed = true;  myProperty.setValue(myShape);7ug视线点
7ug视线点
17,加text层7ug视线点
newText = new TextDocument("test"); var theTextLayer = timeCodeComp.layers.addText(newText); theTextLayer.Position.setValue([163,143]); var textProp = theTextLayer.property("Source Text"); var textDocument = textProp.value; textDocument.fontSize=59; textDocument.font = "Microsoft YaHei"; textDocument.justification = ParagraphJustification.CENTER_JUSTIFY; textProp.setValue(textDocument);7ug视线点
7ug视线点
18,激活某个comp7ug视线点
myComp.openInViewer();7ug视线点
 
点赞
共有条评论 用户: 密码:
验证码: 匿名发表

资源说明

资源编号:

观看点击:493次

系统要求:Win

软件要求:

其他说明:AE脚本