This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 302
/
Copy pathREADME.html
78 lines (62 loc) · 2.86 KB
/
README.html
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!doctype html>
<meta charset=utf-8>
<title>FB Keyframes After Effects Scripts</title>
<style>
html {
font-family: Helvetica Neue, Helvetica, sans-serif;
}
</style>
<!-- This file is HTML instead of MarkDown because the intended audience is animators reading on their desktop -->
<h1>Keyframes After Effects Scripts</h1>
<h4><a href="https://helpx.adobe.com/after-effects/using/scripts.html" alt="After Effects Help / Scripts">How to enable scripts to read/write files/internet</a></h4>
<blockquote>By default scripts are not allowed to write files or send or receive communication over a network. To allow scripts to write files and communicate over a network, choose Edit > Preferences > General (Windows) or After Effects > Preferences > General (Mac OS), and select the Allow Scripts To Write Files And Access Network option.</blockquote>
<p>Export the current After Effects comp to FB Keyframes Animation Descriptor JSON document.
<blockquote><small><i>Requires "<b>Allow Scripts To Write Files And Access Network</b>"</i></small></blockquote>
<p>There are two options for exporting, a command line tool and an After Effects plugin.</p>
<h2>1. Command Line Interface</h2>
<h3>How to install</h3>
<ol>
<li>Under this folder run <tt>npm install . -g</tt></li>
</ol>
<h3>How to run</h3>
<ol>
<li>Open an After Effects project</li>
<li>Open the comp you want to export</li>
<li>Run <tt>keyframes-cli</tt> in terminal</li>
</ol>
<p>A file named <tt>${COMP_NAME}.kf.json</tt> should show up under the same folder</p>
<h2>2. After Effects Plugin</h2>
<h3>How to install</h3>
<ol>
<li>Quit After Effects
<li>Move all the files under this folder into your AE Scripts folder<br>
<small>e.g. <tt>/Applications/Adobe After Effects CC 2015/Scripts/Keyframes</tt> on macOS</small>
<li>Launch After Effects
<li>Open an After Effects project
<li>Menu item: <b>File / Scripts / Keyframes_Exporter.jsx</b><br>
<small>The exporter palette window will open</small>
<li>Press Export
</ol>
<p>You can keep the palette window open and press Export multiple times.
<h3>How to run</h3>
<ol>
<li>Open an After Effects project
<li>Open the comp you want to export
<li>Menu item: <b>File / Scripts / Run Script File…</b>
<li>Choose <tt>Keyframes_Exporter.jsx</tt><br>
<small>The exporter palette window will open</small>
<li>Press Export
</ol>
<p>You'll see a bunch of progress messages.<br>
Eventually the folder with the exported JSON will open.<br>
You'll see three new files:
<ul>
<li><p><tt>Project.aep.comp-###-Comp Name.kf.json</tt><br>
FB Keyframes compatible animation descriptor.
<li><p><tt>Project.aep.comp-###-Comp Name.json</tt><br>
Raw JSON description.
<li><p><tt>Project.aep.comp-###-Comp Name.log</tt><br>
Export progress messages and warnings with timestamps.<br>
Check this file for warnings about incompatible features.<br>
Also useful for diagnosing performance issues.
</ul>