-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.bat
More file actions
26 lines (18 loc) · 683 Bytes
/
build.bat
File metadata and controls
26 lines (18 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
:: Renaming arguments
set file_name=%1%
set file_path=%2%
:: Change this accordingly to your CS version
set version=CS6
:: Adobe After Effects folder location
set base_path=c:\Program Files\Adobe
set ae_folder_path=%base_path%\Adobe After Effects %version%
set ae_scripts_folder_path=%ae_folder_path%\Support Files\Scripts
cd "%file_path%"
:: Copying script to Scripts folder
copy "%file_name%" "%ae_scripts_folder_path%\%file_name%"
cd "%ae_folder_path%\Support Files"
:: Running script in After Effect
AfterFX -r "%ae_scripts_folder_path%\%file_name%"
:: Printing happy feedback in the console
echo "Successfully compiled %file_name% to %full_path%\%file_name%";