-
[AE脚本]导入剪切板图片
js版本 /** * docs: https://cg.yuelili.com/ae/ae-script-import-clipboard-image/ * author: yuelili * platform: windows */ 'use strict'; function parseFile(file) { if (typeof file === 'string') { return new File(file); } else { return file; } } function writeFile(file, text, encoding, includeBOM) { if (encoding === void 0) { encoding = 'UTF-8'; } if (includeBOM === void 0) { includeBOM = false; } file = parseFile(file); try { file.open('w'); file.encoding = encoding; if (includeBOM && encoding.toUpperCase() === 'UTF-8') { var bom = '\uFEFF'; file.write(bom); } file.write(text); file.close(); return true; } catch (error) { return false; } } (function main() { var psContent = '\uFEFFAdd-Type -AssemblyName System.Drawing\nAdd-Type -AssemblyName System.Windows.Forms\n\n\nif ($args.Count -eq 0) {\n Write-Host "\u8BF7\u63D0\u4F9B\u4E00\u4E2A\u6587\u4EF6\u8DEF\u5F84\u4F5C\u4E3A\u53C2\u6570\u3002"\n exit\n}\n\n\n$filePath = $args[0]\n\n$image = [System.Windows.Forms.Clipboard]::GetImage()\n\n\nif ($image) {\n try {\n $bitmap = New-Object System.Drawing.Bitmap($image)\n $bitmap.Save($filePath, [System.Drawing.Imaging.ImageFormat]::Png)\n Write-Host "\u56FE\u7247\u5DF2\u4FDD\u5B58\u81F3 $filePath"\n } catch {\n Write-Host "\u4FDD\u5B58\u56FE\u7247\u65F6\u53D1\u751F\u9519\u8BEF: $_"\n }\n} else {\n Write-Host "\u526A\u8D34\u677F\u4E2D\u6CA1\u6709\u56FE\u7247"\n}\n '; var psScriptPath = Folder.temp.fsName + '/' + 'tmp.SaveClipboardImage.ps1'; var psScriptFile = File(psScriptPath); if (!psScriptFile.exists) { var ok = writeFile(psScriptPath, psContent, 'UTF-8', true); if (!ok) { alert('生成ps脚本失败'); return; } } var projectFile = app.project.file; if (!projectFile.exists) { alert('请先保存项目'); return; } var projectFolder = projectFile.parent.fsName; var footageFolder = new Folder(projectFolder + '/footage'); if (!footageFolder.exists) { footageFolder.create(); } var timestamp = new Date().valueOf();…- 70
- 0
-
[AE开发]如何使用插件 SDK 将 A_char 数组解码为中文字符串?
原贴:https://community.adobe.com/t5/after-effects-discussions/how-to-decode-a-char-array-into-chinese-string-using-plugin-sdk/td-p/12809920 int code_convert(char *from_charset,char *to_charset,char *inbuf,int inlen,char *outbuf,int outlen) { iconv_t cd; int rc; char **pin = &inbuf; char **pout = &outbuf; cd = iconv_open(to_charset,from_charset); if (cd==0) return -1; memset(outbuf,'\0',outlen); if (iconv(cd,pin,(size_t *)&inlen,pout,(size_t*)&outlen)==-1) return -1; iconv_close(cd); return 0; } char gb2312Char[255] = ""; code_convert("gb2312","utf-8",proj_nameAC,strlen(proj_nameAC),gb2312Char,255);- 203
- 0
-
[AE开发]使用OpenCV 与插件集成
原贴:(https://community.adobe.com/t5/after-effects-discussions/opencv-and-aftereffects/td-p/10567083- 239
- 0
-
[AE开发]使用插件调用脚本/CEP
原贴:https://community.adobe.com/t5/after-effects-discussions/call-cep-from-plugin/td-p/10399871- 236
- 0
-
【AE相关】非正式的汉化AE插件步骤
说明:该步骤属于摸石头过河,如有错误还请指正。 由来:看到一群友在努力汉化插件,我也来了兴趣,花了一晚上琢磨出来的。借助「非标准字符串资源汉化工具——Athena-A」傻瓜式的汉化,反正总结下来超级简单。 1. 打开 Athena-A.exe 软件,选择 文件>新建工程,将会弹出一个新窗口; 2. 点击 新建工程>文件 右侧三个点的按钮来选定AE插件文件,记得备份原版插件(可打包备份),哪怕出错了也能救回; 选定文件的窗口默认是DLL以及EXE,看不到插件的后缀,因此要改成所有文件(如图所示),选定后接下来会有一个提示,”是否把文件复制到工程目录“,确定 会拷贝一个到该软件的工程目录下,取消 直接读取刚才打开的文件; 然后原始语言和目标语言不用更改,编码用默认的ANSI,如果选择了UTF-8会导致乱码(切记);再然后点击右下角的 开始,它会保存工程文件(后缀名是ENA),保存成功再点击开始下面的 确定 即可; 3. 重点来了,如果可以的话,先在AE查看英文版有哪些单词,确定要翻译的范围; 可以看出来插件的单词词汇量并不多 可以在软件的原文找到对应的单词,接下来就轮到翻译阶段了; 4. 选中要翻译的单词,然后在最下面的输入框写入中文翻译,图中的②是保存按钮,保存后翻译内容会跑到译文选项中; 酌情翻译,像版权信息的文本点击插件的关于就能看到,%s更像是占位符一定要保留好,好像也没啥了,宁愿少翻译词条也不要乱翻译,可能会导致插件损坏; 5. 校对完翻译就可以收工了,点击菜单栏的 项目>生成目标,然后选定一个目录来存放汉化后的插件,点击创建按钮生成对应的文件。 后记:新鲜出炉的汉化版插件出来啦~ 而且经过测试,汉化插件没遇到不能使用的情况- 532
- 0
❯
Profile
Check-in
Search
Customer service
Scan to open current page
Top
Checking in, please wait...
Click for today's check-in bonus!
You have earned {{mission.data.mission.credit}} points today
My Coupons
-
¥CouponsLimitation of use:Expired and UnavailableLimitation of use:
before
Limitation of use:Permanently validCoupon ID:×Available for the following products: Available for the following products categories: Unrestricted use:Available for all products and product types
No coupons available!
Unverify
Daily tasks completed