【AE脚本】照片墙 IMAGES WALL | 免费 AE AE开发 AE插件/脚本 脚本开发 21年10月22日 编辑 月离离 取消关注 关注 私信 来源 https://www.motionboutique.com 用法 在项目面板中选择一个文件夹。 执行脚本并调整参数(#rows、#cols、transition)。 单击创建。 源码 太长,见下载链接 给TA充电 共{{data.count}}人 人已充电
新用户 初来乍到lv0 22年11月17日 行列的乘积如果少于池大小,这个插件会进入死循环 需要增加如下if判断 if(numCells<numRandomCells){ throw '行列的乘积必须大于池对象个数'; } while (randomCellIndices.length < numRandomCells) { var idx = Math.floor(numCells * Math.random()); writeLn("zzl-7.3.4="+idx+";"+randomCellIndices.length+";"+numRandomCells); if (!utils.isInArray(randomCellIndices, idx)) { randomCellIndices.push(idx); } }
行列的乘积如果少于池大小,这个插件会进入死循环
需要增加如下if判断
if(numCells<numRandomCells){
throw '行列的乘积必须大于池对象个数';
}
while (randomCellIndices.length < numRandomCells)
{
var idx = Math.floor(numCells * Math.random());
writeLn("zzl-7.3.4="+idx+";"+randomCellIndices.length+";"+numRandomCells);
if (!utils.isInArray(randomCellIndices, idx))
{
randomCellIndices.push(idx);
}
}