├── .gitignore ├── LICENSE ├── README.md ├── app └── AE2JSON.jsx ├── lib ├── Logger.jsx ├── json2.js └── utilities.js └── test ├── AE2JSON.aep └── AE2JSON_Comp1.json /.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime* 2 | *.DS_store 3 | *.aep 4 | lib/json2.js 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Cole Reed 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | A script to export After Effects projects to JSON -------------------------------------------------------------------------------- /app/AE2JSON.jsx: -------------------------------------------------------------------------------- 1 | { // AE2JSON v0.5 // // Author: Cole Reed // Email: info@auralgrey.com // https://github.com/ichabodcole // // Please report issues at https://github.com/ichabodcole/AE2JSON // // Copyright (c) 2012 Cole Reed. All rights reserved. // // Description: // This script that provides the ability to export AE project data to JSON // // TODO (this is the short list) // Add comments // Add more exportable types // Export solids with mesh coordinates // Export shape layers with mesh coordinates // Add option to export 2d layers // Add Interface to select export settings /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "../lib/Logger.jsx"; #include "../lib/json2.js" #include "../lib/utilities.js" var L = new Logger(); function AE2JSON(thisObj) { L.indentOn(false); this.proj = app.project; this.comp = app.project.activeItem; this.jsonData = {}; this.jsonData.projectSettings = {}; this.jsonData.compositions = []; this.jsonData.compositions[0] = {}; // create defaultComp until we export all project compositions // and not just the current comp. this.defaultComp = this.jsonData.compositions[0]; this.orgTimeDisplayType = this.proj.timeDisplayType; this.proj.timeDisplayType = TimeDisplayType.FRAMES; this.defaultComp.compSettings = new CompSettings(this.comp); this.defaultComp.layers = []; this.doCompLayers(); this.renderJSON(); this.proj.timeDisplayType = this.orgTimeDisplayType; } AE2JSON.prototype.checkLayerType = function(layer){ if(layer instanceof CameraLayer){ return "CAMERA"; }else if(layer instanceof LightLayer){ return "LIGHT"; }else if(layer.threeDLayer == true){ if(layer.nullLayer == true){ return "NULL"; }else if(layer.nullLayer == false){ return "SOLID"; } } } AE2JSON.prototype.doCompLayers = function() { var myComp, myLayer, numLayers, layerType; myComp = this.comp; if(myComp instanceof CompItem) { numLayers = myComp.layers.length; for(i=0; i 1){ duration = this.compSettings.duration; frameDuration = this.compSettings.frameDuration; frameRate = this.compSettings.frameRate; firstKey = prop.nearestKeyIndex(0); firstKeyTime = prop.keyTime(firstKey); lastKey = prop.nearestKeyIndex(duration); lastKeyTime = prop.keyTime(lastKey); startFrame = Number(timeToCurrentFormat(firstKeyTime, frameRate)); endFrame = Number(timeToCurrentFormat(lastKeyTime, frameRate)); for(frame = startFrame; frame <= endFrame; frame++){ time = frame * frameDuration; propVal = prop.valueAtTime(time, false); timeValues.push([time, propVal]); } }else{ propVal = prop.value; timeValues.push([0, propVal]); } return timeValues; } Null.prototype = Object.create(BaseObject.prototype); function Null(compSettings, layer){ BaseObject.call(this, compSettings, layer); return this.objData; } Null.prototype.beforeDefaults = function(compSettings, layer){ this.objData.layerType = "Null"; } Solid.prototype = Object.create(BaseObject.prototype); function Solid(compSettings, layer){ BaseObject.call(this, compSettings, layer); return this.objData; } Solid.prototype.beforeDefaults = function(compSettings, layer){ this.objData.layerType = "Solid"; } Camera.prototype = Object.create(BaseObject.prototype); function Camera(compSettings, layer){ BaseObject.call(this, compSettings, layer); return this.objData; } Camera.prototype.beforeDefaults = function(compSettings, layer){ this.objData.layerType = "Camera"; } Camera.prototype.setPropGroups = function(){ this.propGroups = ['transform', 'cameraOption']; } Light.prototype = Object.create(BaseObject.prototype); function Light(compSettings, layer){ BaseObject.call(this, compSettings, layer); return this.objData; } Light.prototype.beforeDefaults = function(compSettings, layer){ this.objData.layerType = "Light"; this.lightType = layer.lightType; this.setLightType(); } Light.prototype.setPropGroups = function(){ this.propGroups = ['transform', 'lightOption']; } Light.prototype.setLightType = function(){ switch(this.lightType){ case LightType.POINT: this.objData.lightType = "POINT"; break; case LightType.SPOT: this.objData.lightType = "SPOT"; break; case LightType.PARALLEL: this.objData.lightType = "PARALLEL"; break; case LightType.AMBIENT: this.objData.lightType = "AMBIENT"; break; } } new AE2JSON(this); } -------------------------------------------------------------------------------- /lib/Logger.jsx: -------------------------------------------------------------------------------- 1 | // Logger v1.0 2 | // 3 | // Copyright (c) 2012 Cole Reed. All rights reserved. 4 | // email: info AT auralgrey DOT com 5 | // 6 | // Logger is a helper class to beautify console output. 7 | 8 | // A quick addition to the String class so we can repeat characters easily. 9 | String.prototype.repeat = function(num) { 10 | return new Array( num + 1 ).join(this); 11 | } 12 | 13 | // 14 | var Logger = (function(){ 15 | 16 | function Logger(){ 17 | this.name = "Logger" 18 | this.mute = false; 19 | this.indent = true; 20 | this.indentLevel = 0; 21 | this.indentChar = "--"; 22 | this.indentString = ""; 23 | } 24 | 25 | // Prints an objects properties to the console 26 | Logger.prototype.inspect = function(object) { 27 | try{ 28 | for(var prop in object) { 29 | this.puts(prop); 30 | } 31 | }catch(err){ 32 | this.puts(err); 33 | } 34 | } 35 | 36 | // Writes a message to the console 37 | Logger.prototype.puts = function(message, indentLevel) { 38 | var indent; 39 | if(this.indent == true) { 40 | // do some automatic indenting if no indentLevel is defined. 41 | if(typeof indentLevel != 'number') { 42 | this.indentString += this.indentChar; 43 | indent = this.indentString + " "; 44 | }else{ 45 | indent = this.indentString + this.indentChar.repeat(indentLevel) + " "; 46 | } 47 | }else{ 48 | indent = ""; 49 | } 50 | 51 | try{ 52 | var myLog = indent + message.toString(); 53 | } catch (err){ 54 | var myLog = err; 55 | } 56 | 57 | if(!this.mute) { $.writeln(myLog) }; 58 | } 59 | 60 | // Reset the indent string 61 | Logger.prototype.reset = function() { 62 | this.indentString = ""; 63 | if(!this.mute) { $.writeln(this.indentString) }; 64 | } 65 | 66 | // Stop logging to console 67 | Logger.prototype.stop = function() { 68 | this.mute = true; 69 | } 70 | 71 | // Start logging to console 72 | Logger.prototype.start = function() { 73 | this.mute = false; 74 | } 75 | 76 | // Indent messages 77 | Logger.prototype.indentOn = function(bool){ 78 | this.indent = (bool == true) ? true : false; 79 | } 80 | 81 | return Logger; 82 | })(); -------------------------------------------------------------------------------- /lib/json2.js: -------------------------------------------------------------------------------- 1 | /* 2 | json2.js 3 | 2012-10-08 4 | 5 | Public Domain. 6 | 7 | NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. 8 | 9 | See http://www.JSON.org/js.html 10 | 11 | 12 | This code should be minified before deployment. 13 | See http://javascript.crockford.com/jsmin.html 14 | 15 | USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO 16 | NOT CONTROL. 17 | 18 | 19 | This file creates a global JSON object containing two methods: stringify 20 | and parse. 21 | 22 | JSON.stringify(value, replacer, space) 23 | value any JavaScript value, usually an object or array. 24 | 25 | replacer an optional parameter that determines how object 26 | values are stringified for objects. It can be a 27 | function or an array of strings. 28 | 29 | space an optional parameter that specifies the indentation 30 | of nested structures. If it is omitted, the text will 31 | be packed without extra whitespace. If it is a number, 32 | it will specify the number of spaces to indent at each 33 | level. If it is a string (such as '\t' or ' '), 34 | it contains the characters used to indent at each level. 35 | 36 | This method produces a JSON text from a JavaScript value. 37 | 38 | When an object value is found, if the object contains a toJSON 39 | method, its toJSON method will be called and the result will be 40 | stringified. A toJSON method does not serialize: it returns the 41 | value represented by the name/value pair that should be serialized, 42 | or undefined if nothing should be serialized. The toJSON method 43 | will be passed the key associated with the value, and this will be 44 | bound to the value 45 | 46 | For example, this would serialize Dates as ISO strings. 47 | 48 | Date.prototype.toJSON = function (key) { 49 | function f(n) { 50 | // Format integers to have at least two digits. 51 | return n < 10 ? '0' + n : n; 52 | } 53 | 54 | return this.getUTCFullYear() + '-' + 55 | f(this.getUTCMonth() + 1) + '-' + 56 | f(this.getUTCDate()) + 'T' + 57 | f(this.getUTCHours()) + ':' + 58 | f(this.getUTCMinutes()) + ':' + 59 | f(this.getUTCSeconds()) + 'Z'; 60 | }; 61 | 62 | You can provide an optional replacer method. It will be passed the 63 | key and value of each member, with this bound to the containing 64 | object. The value that is returned from your method will be 65 | serialized. If your method returns undefined, then the member will 66 | be excluded from the serialization. 67 | 68 | If the replacer parameter is an array of strings, then it will be 69 | used to select the members to be serialized. It filters the results 70 | such that only members with keys listed in the replacer array are 71 | stringified. 72 | 73 | Values that do not have JSON representations, such as undefined or 74 | functions, will not be serialized. Such values in objects will be 75 | dropped; in arrays they will be replaced with null. You can use 76 | a replacer function to replace those with JSON values. 77 | JSON.stringify(undefined) returns undefined. 78 | 79 | The optional space parameter produces a stringification of the 80 | value that is filled with line breaks and indentation to make it 81 | easier to read. 82 | 83 | If the space parameter is a non-empty string, then that string will 84 | be used for indentation. If the space parameter is a number, then 85 | the indentation will be that many spaces. 86 | 87 | Example: 88 | 89 | text = JSON.stringify(['e', {pluribus: 'unum'}]); 90 | // text is '["e",{"pluribus":"unum"}]' 91 | 92 | 93 | text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); 94 | // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' 95 | 96 | text = JSON.stringify([new Date()], function (key, value) { 97 | return this[key] instanceof Date ? 98 | 'Date(' + this[key] + ')' : value; 99 | }); 100 | // text is '["Date(---current time---)"]' 101 | 102 | 103 | JSON.parse(text, reviver) 104 | This method parses a JSON text to produce an object or array. 105 | It can throw a SyntaxError exception. 106 | 107 | The optional reviver parameter is a function that can filter and 108 | transform the results. It receives each of the keys and values, 109 | and its return value is used instead of the original value. 110 | If it returns what it received, then the structure is not modified. 111 | If it returns undefined then the member is deleted. 112 | 113 | Example: 114 | 115 | // Parse the text. Values that look like ISO date strings will 116 | // be converted to Date objects. 117 | 118 | myData = JSON.parse(text, function (key, value) { 119 | var a; 120 | if (typeof value === 'string') { 121 | a = 122 | /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); 123 | if (a) { 124 | return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], 125 | +a[5], +a[6])); 126 | } 127 | } 128 | return value; 129 | }); 130 | 131 | myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { 132 | var d; 133 | if (typeof value === 'string' && 134 | value.slice(0, 5) === 'Date(' && 135 | value.slice(-1) === ')') { 136 | d = new Date(value.slice(5, -1)); 137 | if (d) { 138 | return d; 139 | } 140 | } 141 | return value; 142 | }); 143 | 144 | 145 | This is a reference implementation. You are free to copy, modify, or 146 | redistribute. 147 | */ 148 | 149 | /*jslint evil: true, regexp: true */ 150 | 151 | /*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, 152 | call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, 153 | getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, 154 | lastIndex, length, parse, prototype, push, replace, slice, stringify, 155 | test, toJSON, toString, valueOf 156 | */ 157 | 158 | 159 | // Create a JSON object only if one does not already exist. We create the 160 | // methods in a closure to avoid creating global variables. 161 | 162 | if (typeof JSON !== 'object') { 163 | JSON = {}; 164 | } 165 | 166 | (function () { 167 | 'use strict'; 168 | 169 | function f(n) { 170 | // Format integers to have at least two digits. 171 | return n < 10 ? '0' + n : n; 172 | } 173 | 174 | if (typeof Date.prototype.toJSON !== 'function') { 175 | 176 | Date.prototype.toJSON = function (key) { 177 | 178 | return isFinite(this.valueOf()) 179 | ? this.getUTCFullYear() + '-' + 180 | f(this.getUTCMonth() + 1) + '-' + 181 | f(this.getUTCDate()) + 'T' + 182 | f(this.getUTCHours()) + ':' + 183 | f(this.getUTCMinutes()) + ':' + 184 | f(this.getUTCSeconds()) + 'Z' 185 | : null; 186 | }; 187 | 188 | String.prototype.toJSON = 189 | Number.prototype.toJSON = 190 | Boolean.prototype.toJSON = function (key) { 191 | return this.valueOf(); 192 | }; 193 | } 194 | 195 | var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, 196 | escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, 197 | gap, 198 | indent, 199 | meta = { // table of character substitutions 200 | '\b': '\\b', 201 | '\t': '\\t', 202 | '\n': '\\n', 203 | '\f': '\\f', 204 | '\r': '\\r', 205 | '"' : '\\"', 206 | '\\': '\\\\' 207 | }, 208 | rep; 209 | 210 | 211 | function quote(string) { 212 | 213 | // If the string contains no control characters, no quote characters, and no 214 | // backslash characters, then we can safely slap some quotes around it. 215 | // Otherwise we must also replace the offending characters with safe escape 216 | // sequences. 217 | 218 | escapable.lastIndex = 0; 219 | return escapable.test(string) ? '"' + string.replace(escapable, function (a) { 220 | var c = meta[a]; 221 | return typeof c === 'string' 222 | ? c 223 | : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 224 | }) + '"' : '"' + string + '"'; 225 | } 226 | 227 | 228 | function str(key, holder) { 229 | 230 | // Produce a string from holder[key]. 231 | 232 | var i, // The loop counter. 233 | k, // The member key. 234 | v, // The member value. 235 | length, 236 | mind = gap, 237 | partial, 238 | value = holder[key]; 239 | 240 | // If the value has a toJSON method, call it to obtain a replacement value. 241 | 242 | if (value && typeof value === 'object' && 243 | typeof value.toJSON === 'function') { 244 | value = value.toJSON(key); 245 | } 246 | 247 | // If we were called with a replacer function, then call the replacer to 248 | // obtain a replacement value. 249 | 250 | if (typeof rep === 'function') { 251 | value = rep.call(holder, key, value); 252 | } 253 | 254 | // What happens next depends on the value's type. 255 | 256 | switch (typeof value) { 257 | case 'string': 258 | return quote(value); 259 | 260 | case 'number': 261 | 262 | // JSON numbers must be finite. Encode non-finite numbers as null. 263 | 264 | return isFinite(value) ? String(value) : 'null'; 265 | 266 | case 'boolean': 267 | case 'null': 268 | 269 | // If the value is a boolean or null, convert it to a string. Note: 270 | // typeof null does not produce 'null'. The case is included here in 271 | // the remote chance that this gets fixed someday. 272 | 273 | return String(value); 274 | 275 | // If the type is 'object', we might be dealing with an object or an array or 276 | // null. 277 | 278 | case 'object': 279 | 280 | // Due to a specification blunder in ECMAScript, typeof null is 'object', 281 | // so watch out for that case. 282 | 283 | if (!value) { 284 | return 'null'; 285 | } 286 | 287 | // Make an array to hold the partial results of stringifying this object value. 288 | 289 | gap += indent; 290 | partial = []; 291 | 292 | // Is the value an array? 293 | 294 | if (Object.prototype.toString.apply(value) === '[object Array]') { 295 | 296 | // The value is an array. Stringify every element. Use null as a placeholder 297 | // for non-JSON values. 298 | 299 | length = value.length; 300 | for (i = 0; i < length; i += 1) { 301 | partial[i] = str(i, value) || 'null'; 302 | } 303 | 304 | // Join all of the elements together, separated with commas, and wrap them in 305 | // brackets. 306 | 307 | v = partial.length === 0 308 | ? '[]' 309 | : gap 310 | ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' 311 | : '[' + partial.join(',') + ']'; 312 | gap = mind; 313 | return v; 314 | } 315 | 316 | // If the replacer is an array, use it to select the members to be stringified. 317 | 318 | if (rep && typeof rep === 'object') { 319 | length = rep.length; 320 | for (i = 0; i < length; i += 1) { 321 | if (typeof rep[i] === 'string') { 322 | k = rep[i]; 323 | v = str(k, value); 324 | if (v) { 325 | partial.push(quote(k) + (gap ? ': ' : ':') + v); 326 | } 327 | } 328 | } 329 | } else { 330 | 331 | // Otherwise, iterate through all of the keys in the object. 332 | 333 | for (k in value) { 334 | if (Object.prototype.hasOwnProperty.call(value, k)) { 335 | v = str(k, value); 336 | if (v) { 337 | partial.push(quote(k) + (gap ? ': ' : ':') + v); 338 | } 339 | } 340 | } 341 | } 342 | 343 | // Join all of the member texts together, separated with commas, 344 | // and wrap them in braces. 345 | 346 | v = partial.length === 0 347 | ? '{}' 348 | : gap 349 | ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' 350 | : '{' + partial.join(',') + '}'; 351 | gap = mind; 352 | return v; 353 | } 354 | } 355 | 356 | // If the JSON object does not yet have a stringify method, give it one. 357 | 358 | if (typeof JSON.stringify !== 'function') { 359 | JSON.stringify = function (value, replacer, space) { 360 | 361 | // The stringify method takes a value and an optional replacer, and an optional 362 | // space parameter, and returns a JSON text. The replacer can be a function 363 | // that can replace values, or an array of strings that will select the keys. 364 | // A default replacer method can be provided. Use of the space parameter can 365 | // produce text that is more easily readable. 366 | 367 | var i; 368 | gap = ''; 369 | indent = ''; 370 | 371 | // If the space parameter is a number, make an indent string containing that 372 | // many spaces. 373 | 374 | if (typeof space === 'number') { 375 | for (i = 0; i < space; i += 1) { 376 | indent += ' '; 377 | } 378 | 379 | // If the space parameter is a string, it will be used as the indent string. 380 | 381 | } else if (typeof space === 'string') { 382 | indent = space; 383 | } 384 | 385 | // If there is a replacer, it must be a function or an array. 386 | // Otherwise, throw an error. 387 | 388 | rep = replacer; 389 | if (replacer && typeof replacer !== 'function' && 390 | (typeof replacer !== 'object' || 391 | typeof replacer.length !== 'number')) { 392 | throw new Error('JSON.stringify'); 393 | } 394 | 395 | // Make a fake root object containing our value under the key of ''. 396 | // Return the result of stringifying the value. 397 | 398 | return str('', {'': value}); 399 | }; 400 | } 401 | 402 | 403 | // If the JSON object does not yet have a parse method, give it one. 404 | 405 | if (typeof JSON.parse !== 'function') { 406 | JSON.parse = function (text, reviver) { 407 | 408 | // The parse method takes a text and an optional reviver function, and returns 409 | // a JavaScript value if the text is a valid JSON text. 410 | 411 | var j; 412 | 413 | function walk(holder, key) { 414 | 415 | // The walk method is used to recursively walk the resulting structure so 416 | // that modifications can be made. 417 | 418 | var k, v, value = holder[key]; 419 | if (value && typeof value === 'object') { 420 | for (k in value) { 421 | if (Object.prototype.hasOwnProperty.call(value, k)) { 422 | v = walk(value, k); 423 | if (v !== undefined) { 424 | value[k] = v; 425 | } else { 426 | delete value[k]; 427 | } 428 | } 429 | } 430 | } 431 | return reviver.call(holder, key, value); 432 | } 433 | 434 | 435 | // Parsing happens in four stages. In the first stage, we replace certain 436 | // Unicode characters with escape sequences. JavaScript handles many characters 437 | // incorrectly, either silently deleting them, or treating them as line endings. 438 | 439 | text = String(text); 440 | cx.lastIndex = 0; 441 | if (cx.test(text)) { 442 | text = text.replace(cx, function (a) { 443 | return '\\u' + 444 | ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 445 | }); 446 | } 447 | 448 | // In the second stage, we run the text against regular expressions that look 449 | // for non-JSON patterns. We are especially concerned with '()' and 'new' 450 | // because they can cause invocation, and '=' because it can cause mutation. 451 | // But just to be safe, we want to reject all unexpected forms. 452 | 453 | // We split the second stage into 4 regexp operations in order to work around 454 | // crippling inefficiencies in IE's and Safari's regexp engines. First we 455 | // replace the JSON backslash pairs with '@' (a non-JSON character). Second, we 456 | // replace all simple value tokens with ']' characters. Third, we delete all 457 | // open brackets that follow a colon or comma or that begin the text. Finally, 458 | // we look to see that the remaining characters are only whitespace or ']' or 459 | // ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. 460 | 461 | if (/^[\],:{}\s]*$/ 462 | .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') 463 | .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') 464 | .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { 465 | 466 | // In the third stage we use the eval function to compile the text into a 467 | // JavaScript structure. The '{' operator is subject to a syntactic ambiguity 468 | // in JavaScript: it can begin a block or an object literal. We wrap the text 469 | // in parens to eliminate the ambiguity. 470 | 471 | j = eval('(' + text + ')'); 472 | 473 | // In the optional fourth stage, we recursively walk the new structure, passing 474 | // each name/value pair to a reviver function for possible transformation. 475 | 476 | return typeof reviver === 'function' 477 | ? walk({'': j}, '') 478 | : j; 479 | } 480 | 481 | // If the text is not JSON parseable, then a SyntaxError is thrown. 482 | 483 | throw new SyntaxError('JSON.parse'); 484 | }; 485 | } 486 | }()); 487 | -------------------------------------------------------------------------------- /lib/utilities.js: -------------------------------------------------------------------------------- 1 | if (!Object.create) { 2 | Object.create = function (o) { 3 | if (arguments.length > 1) { 4 | throw new Error('Object.create implementation only accepts the first parameter.'); 5 | } 6 | function F() {} 7 | F.prototype = o; 8 | return new F(); 9 | }; 10 | } 11 | 12 | String.prototype.toCamelCase = function(){ 13 | return this 14 | .toLowerCase() 15 | .replace(/(\s+[a-z])/g, 16 | function($1) { 17 | return $1.toUpperCase().replace(' ', ''); 18 | } 19 | ); 20 | } -------------------------------------------------------------------------------- /test/AE2JSON.aep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ichabodcole/AE2JSON/fac87446db43421d61a51b1350bc3bc5142a7689/test/AE2JSON.aep -------------------------------------------------------------------------------- /test/AE2JSON_Comp1.json: -------------------------------------------------------------------------------- 1 | { "projectSettings": { }, "compositions": [ { "compSettings": { "name": "Comp 1", "width": 960, "height": 540, "frameRate": 29.9700012207031, "frameDuration": 0.03336670003337, "duration": 10.01001001001 }, "layers": [ { "layerType": "Null", "name": "Camera POI_L1", "index": 1, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 480, 369, 0 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ], [ 0.03336670003337, 0.04457234112452 ], [ 0.06673340006673, 0.17636189516646 ], [ 0.1001001001001, 0.39258482637775 ], [ 0.13346680013347, 0.69059248828392 ], [ 0.16683350016683, 1.06786218568764 ], [ 0.2002002002002, 1.52198872588751 ], [ 0.23356690023357, 2.05067667800511 ], [ 0.26693360026693, 2.65173326897132 ], [ 0.3003003003003, 3.32306185307848 ], [ 0.33366700033367, 4.06265589925706 ], [ 0.36703370036703, 4.86859344653201 ], [ 0.4004004004004, 5.73903198361666 ], [ 0.43376710043377, 6.67220371340086 ], [ 0.46713380046713, 7.66641116730228 ], [ 0.5005005005005, 8.72002313814116 ], [ 0.53386720053387, 9.83147090345653 ], [ 0.56723390056723, 10.9992447140448 ], [ 0.6006006006006, 12.2218905250419 ], [ 0.63396730063397, 13.4980069491109 ], [ 0.66733400066733, 14.8262424132919 ], [ 0.7007007007007, 16.2052925028373 ], [ 0.73406740073407, 17.6338974769372 ], [ 0.76743410076743, 19.1108399426415 ], [ 0.8008008008008, 20.6349426745445 ], [ 0.83416750083417, 22.2050665689204 ], [ 0.86753420086753, 23.820108722007 ], [ 0.9009009009009, 25.4790006230425 ], [ 0.93426760093427, 27.1807064534681 ], [ 0.96763430096763, 28.9242214844441 ], [ 1.001001001001, 30.7085705654968 ], [ 1.03436770103437, 32.5328066976879 ], [ 1.06773440106773, 34.3960096852631 ], [ 1.1011011011011, 36.2972848602038 ], [ 1.13446780113447, 38.2357618745586 ], [ 1.16783450116783, 40.2105935558322 ], [ 1.2012012012012, 42.2209548210602 ], [ 1.23456790123457, 44.2660416455518 ], [ 1.26793460126793, 46.3450700825609 ], [ 1.3013013013013, 48.4572753304353 ], [ 1.33466800133467, 50.6019108440345 ], [ 1.36803470136803, 52.778247487437 ], [ 1.4014014014014, 54.9855727251722 ], [ 1.43476810143477, 57.2231898493866 ], [ 1.46813480146813, 59.4904172405462 ], [ 1.5015015015015, 61.7865876594113 ], [ 1.53486820153487, 64.1110475681978 ], [ 1.56823490156823, 66.4631564789309 ], [ 1.6016016016016, 68.8422863271528 ], [ 1.63496830163497, 71.2478208692373 ], [ 1.66833500166833, 73.6791551016649 ], [ 1.7017017017017, 76.135694700716 ], [ 1.73506840173507, 78.5456977674888 ], [ 1.76843510176843, 80.8390912197029 ], [ 1.8018018018018, 83.0177599304995 ], [ 1.83516850183517, 85.0835478148599 ], [ 1.86853520186854, 87.0382594312892 ], [ 1.9019019019019, 88.8836615234746 ], [ 1.93526860193527, 90.6214845056013 ], [ 1.96863530196864, 92.2534238948255 ], [ 2.002002002002, 93.7811416942282 ], [ 2.03536870203537, 95.206267729408 ], [ 2.06873540206874, 96.5304009417348 ], [ 2.1021021021021, 97.7551106411379 ], [ 2.13546880213547, 98.8819377211988 ], [ 2.16883550216884, 99.9123958391947 ], [ 2.2022022022022, 100.847972563655 ], [ 2.23556890223557, 101.690130491902 ], [ 2.26893560226894, 102.440308339962 ], [ 2.3023023023023, 103.099922007194 ], [ 2.33566900233567, 103.670365617895 ], [ 2.36903570236904, 104.153012542125 ], [ 2.4024024024024, 104.549216397942 ], [ 2.43576910243577, 104.860312037222 ], [ 2.46913580246914, 105.087616517215 ], [ 2.5025025025025, 105.232430059989 ], [ 2.53586920253587, 105.296037001924 ], [ 2.56923590256924, 105.27970673542 ], [ 2.6026026026026, 105.184694645019 ], [ 2.63596930263597, 105.012243040182 ], [ 2.66933600266934, 104.763582087005 ], [ 2.7027027027027, 104.439930741224 ], [ 2.73606940273607, 104.042497684948 ], [ 2.76943610276944, 103.572482269628 ], [ 2.8028028028028, 103.0310754679 ], [ 2.83616950283617, 102.41946083706 ], [ 2.86953620286954, 101.738815497074 ], [ 2.9029029029029, 100.990311126185 ], [ 2.93626960293627, 100.17511497739 ], [ 2.96963630296964, 99.2943909192472 ], [ 3.003003003003, 98.3493005047544 ], [ 3.03636970303637, 97.3410040722745 ], [ 3.06973640306974, 96.2706618828382 ], [ 3.1031031031031, 95.1394352984726 ], [ 3.13646980313647, 93.9484880066287 ], [ 3.16983650316984, 92.6989872962107 ], [ 3.2032032032032, 91.3921053912275 ], [ 3.23656990323657, 90.0290208486582 ], [ 3.26993660326994, 88.6109200277627 ], [ 3.3033033033033, 87.1389986388082 ], [ 3.33667000333667, 85.6144633800049 ], [ 3.37003670337004, 84.0385336723872 ], [ 3.4034034034034, 82.4124435034343 ], [ 3.43677010343677, 80.7374433914489 ], [ 3.47013680347014, 79.0148024840836 ], [ 3.5035035035035, 77.2458108059832 ], [ 3.53687020353687, 75.4317816723254 ], [ 3.57023690357024, 73.5740542870917 ], [ 3.6036036036036, 71.6739965472971 ], [ 3.63697030363697, 69.7330080771252 ], [ 3.67033700367034, 67.7525235190889 ], [ 3.7037037037037, 65.734016112986 ], [ 3.73707040373707, 63.6790015976715 ], [ 3.77043710377044, 61.5890424756035 ], [ 3.8038038038038, 59.4657526859004 ], [ 3.83717050383717, 57.3108027384052 ], [ 3.87053720387054, 55.1259253691979 ], [ 3.9039039039039, 52.9129217873729 ], [ 3.93727060393727, 50.673668593998 ], [ 3.97063730397064, 48.4101254673353 ], [ 4.004004004004, 46.1243437241656 ], [ 4.03737070403737, 43.8184758858498 ], [ 4.07073740407074, 41.4947864004758 ], [ 4.1041041041041, 39.1556636998054 ], [ 4.13747080413747, 36.8036338030401 ], [ 4.17083750417084, 34.4413757200468 ], [ 4.2042042042042, 32.0717389565832 ], [ 4.23757090423757, 29.6977634856364 ], [ 4.27093760427094, 27.322702625496 ], [ 4.3043043043043, 24.9500493608065 ], [ 4.33767100433767, 22.5835667631974 ], [ 4.37103770437104, 20.2273233206912 ], [ 4.4044044044044, 17.8857341800176 ], [ 4.43777110443777, 15.5636095571038 ], [ 4.47113780447114, 13.2662118973611 ], [ 4.5045045045045, 10.99932379557 ], [ 4.53787120453787, 8.76932925267706 ], [ 4.57123790457124, 6.58331160731801 ], [ 4.6046046046046, 4.44917251123126 ], [ 4.63797130463797, 2.3757777345372 ], [ 4.67133800467134, 0.3731375609 ], [ 4.7047047047047, -1.54736767433421 ], [ 4.73807140473807, -3.37270233028886 ], [ 4.77143810477144, -5.08781002421042 ], [ 4.8048048048048, -6.67513872149314 ], [ 4.83817150483817, -8.11401353895627 ], [ 4.87153820487154, -9.37979317866271 ], [ 4.9049049049049, -10.4427114462177 ], [ 4.93827160493827, -11.2662475383671 ], [ 4.97163830497164, -11.8047680729253 ], [ 5.00500500500501, -12 ], [ 5.03837170503837, -11.8766306341209 ], [ 5.07173840507174, -11.5940101588178 ], [ 5.10510510510511, -11.2203647197222 ], [ 5.13847180513847, -10.7884492970794 ], [ 5.17183850517184, -10.3170841774395 ], [ 5.20520520520521, -9.81835431279521 ], [ 5.23857190523857, -9.30065068068067 ], [ 5.27193860527194, -8.77015893516577 ], [ 5.30530530530531, -8.23166743909155 ], [ 5.33867200533867, -7.68904149627747 ], [ 5.37203870537204, -7.14551968231179 ], [ 5.40540540540541, -6.60390916393459 ], [ 5.43877210543877, -6.06672083252185 ], [ 5.47213880547214, -5.53626730407709 ], [ 5.50550550550551, -5.01473753178486 ], [ 5.53887220553887, -4.50425667026661 ], [ 5.57223890557224, -4.00693693682881 ], [ 5.60560560560561, -3.5249235576462 ], [ 5.63897230563897, -3.06043896733002 ], [ 5.67233900567234, -2.61582799177507 ], [ 5.70570570570571, -2.19360666246428 ], [ 5.73907240573907, -1.79651754475861 ], [ 5.77243910577244, -1.42759503748516 ], [ 5.80580580580581, -1.09024510883419 ], [ 5.83917250583917, -0.78834555865989 ], [ 5.87253920587254, -0.52637547029439 ], [ 5.90590590590591, -0.30958662028904 ], [ 5.93927260593927, -0.14423630411563 ], [ 5.97263930597264, -0.03791226694749 ], [ 6.00600600600601, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 0 ] ] } }, { "layerType": "Null", "name": "Camera Control_L2", "index": 2, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 480, 362, -933.33333343 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 6.17618827582763, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 0 ] ] } }, { "layerType": "Camera", "name": "Camera 1_L3", "index": 3, "parent": "Camera POI_L1", "transform": { "pointOfInterest": [ [ 0, [ 480, 270, 0 ] ] ], "position": [ [ 0.46713380046713, [ 479.273928239077, 362, -933.333051011992 ] ], [ 0.5005005005005, [ 479.273922562918, 361.657400885439, -933.340347462465 ] ], [ 0.53386720053387, [ 479.273853813307, 360.684605280944, -933.42872203824 ] ], [ 0.56723390056723, [ 479.273633320764, 359.17333840335, -933.712155424239 ] ], [ 0.6006006006006, [ 479.27321620569, 357.237543554175, -934.248338354884 ] ], [ 0.63396730063397, [ 479.272595160074, 354.941968042573, -935.046664955028 ] ], [ 0.66733400066733, [ 479.271784922325, 352.339664638111, -936.088189651388 ] ], [ 0.7007007007007, [ 479.27080686711, 349.465163930582, -937.345436258007 ] ], [ 0.73406740073407, [ 479.269684974639, 346.34494355915, -938.787579279229 ] ], [ 0.76743410076743, [ 479.268445654004, 343.004793427534, -940.380670997908 ] ], [ 0.8008008008008, [ 479.267112023517, 339.457575338087, -942.094993848421 ] ], [ 0.83416750083417, [ 479.265707132627, 335.712985611091, -943.900918787626 ] ], [ 0.86753420086753, [ 479.264257706229, 331.786821355619, -945.764092148533 ] ], [ 0.9009009009009, [ 479.262789803328, 327.688458978677, -947.651016232498 ] ], [ 0.93426760093427, [ 479.261329500838, 323.420318630703, -949.52817032702 ] ], [ 0.96763430096763, [ 479.25990744878, 318.987488054069, -951.356155186153 ] ], [ 1.001001001001, [ 479.258560152481, 314.398639062733, -953.088044833464 ] ], [ 1.03436770103437, [ 479.257329772811, 309.660601038925, -954.669643337255 ] ], [ 1.06773440106773, [ 479.256267172457, 304.780128915634, -956.035568971642 ] ], [ 1.1011011011011, [ 479.255436450054, 299.770022226838, -957.103425782221 ] ], [ 1.13446780113447, [ 479.254919391981, 294.660692930196, -957.768081006591 ] ], [ 1.16783450116783, [ 479.254816166848, 289.500163797858, -957.900772336595 ] ], [ 1.2012012012012, [ 479.255240855264, 284.38838769437, -957.354854210914 ] ], [ 1.23456790123457, [ 479.25629749292, 279.470775835245, -955.996593361174 ] ], [ 1.26793460126793, [ 479.258015553845, 274.979119792339, -953.788102229621 ] ], [ 1.3013013013013, [ 479.260309970823, 271.101436811272, -950.838730950545 ] ], [ 1.33466800133467, [ 479.262997154641, 267.925630512212, -947.384475315258 ] ], [ 1.36803470136803, [ 479.26584689788, 265.439713216103, -943.721256752928 ] ], [ 1.4014014014014, [ 479.268640659212, 263.562733816828, -940.130000450691 ] ], [ 1.43476810143477, [ 479.271142204812, 262.216523908671, -936.914374513011 ] ], [ 1.46813480146813, [ 479.273073397117, 261.345613006274, -934.431912443162 ] ], [ 1.5015015015015, [ 479.273928239077, 261, -933.333051011992 ] ], [ 1.53486820153487, [ 479.274685082862, 260.713941035607, -932.360161887637 ] ], [ 1.56823490156823, [ 479.276914281634, 259.968206020023, -929.494625721192 ] ], [ 1.6016016016016, [ 479.280542333751, 258.977746106243, -924.830925609814 ] ], [ 1.63496830163497, [ 479.285486839932, 257.919748168519, -918.474982178182 ] ], [ 1.66833500166833, [ 479.291646525193, 256.905682611167, -910.556979926237 ] ], [ 1.7017017017017, [ 479.298917856272, 255.995626477769, -901.210006272432 ] ], [ 1.73506840173507, [ 479.307191472348, 255.219738632044, -890.574639700516 ] ], [ 1.76843510176843, [ 479.316359894672, 254.590500166277, -878.789039375646 ] ], [ 1.8018018018018, [ 479.326316403511, 254.110514411404, -865.990388784958 ] ], [ 1.83516850183517, [ 479.336953660014, 253.776661708952, -852.316667259131 ] ], [ 1.86853520186854, [ 479.348168756266, 253.582244179982, -837.90015836067 ] ], [ 1.9019019019019, [ 479.359853458742, 253.518530283596, -822.879991485967 ] ], [ 1.93526860193527, [ 479.371898514547, 253.575249589265, -807.396606387259 ] ], [ 1.96863530196864, [ 479.3842069354, 253.741284194314, -791.57467719695 ] ], [ 2.002002002002, [ 479.396670091799, 254.004848033624, -775.553842325464 ] ], [ 2.03536870203537, [ 479.409183699461, 254.353725442373, -759.468154591878 ] ], [ 2.06873540206874, [ 479.421645118978, 254.775451238601, -743.449552404233 ] ], [ 2.1021021021021, [ 479.433943799011, 255.257036030757, -727.640144606354 ] ], [ 2.13546880213547, [ 479.445980083598, 255.785704396758, -712.168034518835 ] ], [ 2.16883550216884, [ 479.457660464212, 256.348948385356, -697.15342320602 ] ], [ 2.2022022022022, [ 479.468869101893, 256.933114631957, -682.745216514734 ] ], [ 2.23556890223557, [ 479.479491910771, 257.524394143867, -669.090066771134 ] ], [ 2.26893560226894, [ 479.48944954858, 258.110897671468, -656.289964938715 ] ], [ 2.3023023023023, [ 479.498624962143, 258.678601188528, -644.495377687217 ] ], [ 2.33566900233567, [ 479.506910506853, 259.213907600624, -633.844677385122 ] ], [ 2.36903570236904, [ 479.514205472054, 259.703628237594, -624.467323114217 ] ], [ 2.4024024024024, [ 479.520406169638, 260.134373023809, -616.496601339659 ] ], [ 2.43576910243577, [ 479.525412042595, 260.49296188259, -610.061773638594 ] ], [ 2.46913580246914, [ 479.529115688049, 260.765713372452, -605.300901646663 ] ], [ 2.5025025025025, [ 479.53141334977, 260.939183162357, -602.347359393775 ] ], [ 2.53586920253587, [ 479.532202336864, 261, -601.333151472112 ] ], [ 2.56923590256924, [ 479.531860663632, 261, -601.772357260083 ] ], [ 2.6026026026026, [ 479.530982449229, 261, -602.90126293038 ] ], [ 2.63596930263597, [ 479.529715109377, 261, -604.530372110692 ] ], [ 2.66933600266934, [ 479.52814880838, 261, -606.543782584268 ] ], [ 2.7027027027027, [ 479.526343955209, 261, -608.863841299031 ] ], [ 2.73606940273607, [ 479.524343362744, 261, -611.435514196527 ] ], [ 2.76943610276944, [ 479.522179298443, 261, -614.217322890314 ] ], [ 2.8028028028028, [ 479.519877606662, 261, -617.176045606768 ] ], [ 2.83616950283617, [ 479.517456605737, 261, -620.288134935649 ] ], [ 2.86953620286954, [ 479.514929380433, 261, -623.536770995274 ] ], [ 2.9029029029029, [ 479.512309479392, 261, -626.904537603692 ] ], [ 2.93626960293627, [ 479.509608357505, 261, -630.376710007819 ] ], [ 2.96963630296964, [ 479.506833951894, 261, -633.943085390099 ] ], [ 3.003003003003, [ 479.503992742263, 261, -637.595334377294 ] ], [ 3.03636970303637, [ 479.501092315034, 261, -641.323704960517 ] ], [ 3.06973640306974, [ 479.498138467406, 261, -645.120745097753 ] ], [ 3.1031031031031, [ 479.49513521808, 261, -648.981288926943 ] ], [ 3.13646980313647, [ 479.492084983483, 261, -652.902230238798 ] ], [ 3.16983650316984, [ 479.488992412352, 261, -656.877593288438 ] ], [ 3.2032032032032, [ 479.485862488858, 261, -660.900971142882 ] ], [ 3.23656990323657, [ 479.482699245849, 261, -664.967179756505 ] ], [ 3.26993660326994, [ 479.479505863621, 261, -669.072130999968 ] ], [ 3.3033033033033, [ 479.476284757231, 261, -673.212720425264 ] ], [ 3.33667000333667, [ 479.473037652864, 261, -677.386729096257 ] ], [ 3.37003670337004, [ 479.469765653988, 261, -681.592738553646 ] ], [ 3.4034034034034, [ 479.466469298087, 261, -685.830057888642 ] ], [ 3.43677010343677, [ 479.463149457012, 261, -690.097566371722 ] ], [ 3.47013680347014, [ 479.459809048723, 261, -694.391513097144 ] ], [ 3.5035035035035, [ 479.456450457084, 261, -698.708833712057 ] ], [ 3.53687020353687, [ 479.453075729405, 261, -703.046896490578 ] ], [ 3.57023690357024, [ 479.449686624928, 261, -707.4034400068 ] ], [ 3.6036036036036, [ 479.446284640777, 261, -711.776539771152 ] ], [ 3.63697030363697, [ 479.442871036401, 261, -716.164576820023 ] ], [ 3.67033700367034, [ 479.439446856553, 261, -720.566208169902 ] ], [ 3.7037037037037, [ 479.436012952914, 261, -724.980339021123 ] ], [ 3.73707040373707, [ 479.432570004462, 261, -729.40609657829 ] ], [ 3.77043710377044, [ 479.429118536692, 261, -733.842805342229 ] ], [ 3.8038038038038, [ 479.425658956804, 261, -738.289941872579 ] ], [ 3.83717050383717, [ 479.422192723265, 261, -742.745631377246 ] ], [ 3.87053720387054, [ 479.418721417095, 261, -747.207841523678 ] ], [ 3.9039039039039, [ 479.415246088586, 261, -751.675222208686 ] ], [ 3.93727060393727, [ 479.411767721906, 261, -756.146508326727 ] ], [ 3.97063730397064, [ 479.408287248043, 261, -760.620503136501 ] ], [ 4.004004004004, [ 479.404805557514, 261, -765.096061916241 ] ], [ 4.03737070403737, [ 479.401323512908, 261, -769.572075845518 ] ], [ 4.07073740407074, [ 479.397841961299, 261, -774.047456049444 ] ], [ 4.1041041041041, [ 479.394361746581, 261, -778.521117739842 ] ], [ 4.13747080413747, [ 479.390883721781, 261, -782.991964387298 ] ], [ 4.17083750417084, [ 479.387408761401, 261, -787.458871857877 ] ], [ 4.2042042042042, [ 479.383937773839, 261, -791.920672448628 ] ], [ 4.23757090423757, [ 479.380471713931, 261, -796.376138756957 ] ], [ 4.27093760427094, [ 479.377011690029, 261, -800.823846048242 ] ], [ 4.3043043043043, [ 479.37355944715, 261, -805.261551180471 ] ], [ 4.33767100433767, [ 479.37011576206, 261, -809.688255653107 ] ], [ 4.37103770437104, [ 479.366681268442, 261, -814.103144896553 ] ], [ 4.4044044044044, [ 479.36325672366, 261, -818.505245352277 ] ], [ 4.43777110443777, [ 479.359843025651, 261, -822.893402762145 ] ], [ 4.47113780447114, [ 479.356441230588, 261, -827.266259463014 ] ], [ 4.5045045045045, [ 479.353052571402, 261, -831.622230577051 ] ], [ 4.53787120453787, [ 479.349678477241, 261, -835.959478996876 ] ], [ 4.57123790457124, [ 479.346320593938, 261, -840.275889076443 ] ], [ 4.6046046046046, [ 479.342980805544, 261, -844.569038954141 ] ], [ 4.63797130463797, [ 479.339661254391, 261, -848.836174756022 ] ], [ 4.67133800467134, [ 479.33636383041, 261, -853.07486705993 ] ], [ 4.7047047047047, [ 479.333089655462, 261, -857.283673761765 ] ], [ 4.73807140473807, [ 479.329840126006, 261, -861.460799777165 ] ], [ 4.77143810477144, [ 479.326617087858, 261, -865.603872390663 ] ], [ 4.8048048048048, [ 479.323422879949, 261, -869.709885010568 ] ], [ 4.83817150483817, [ 479.320260382559, 261, -873.775135164279 ] ], [ 4.87153820487154, [ 479.317133113355, 261, -877.795101046975 ] ], [ 4.9049049049049, [ 479.314044461254, 261, -881.765426356693 ] ], [ 4.93827160493827, [ 479.310996837827, 261, -885.683011124957 ] ], [ 4.97163830497164, [ 479.307993438723, 261, -889.543747488402 ] ], [ 5.00500500500501, [ 479.305038504549, 261, -893.342184331876 ] ], [ 5.03837170503837, [ 479.302137442111, 261, -897.071371448875 ] ], [ 5.07173840507174, [ 479.299296885907, 261, -900.722780484297 ] ], [ 5.10510510510511, [ 479.296522843604, 261, -904.288688850095 ] ], [ 5.13847180513847, [ 479.293821577887, 261, -907.761046141417 ] ], [ 5.17183850517184, [ 479.291201549667, 261, -911.128976232968 ] ], [ 5.20520520520521, [ 479.288673801042, 261, -914.378284997316 ] ], [ 5.23857190523857, [ 479.286252086988, 261, -917.491291023408 ] ], [ 5.27193860527194, [ 479.283950676524, 261, -920.449652117947 ] ], [ 5.30530530530531, [ 479.281787572257, 261, -923.230226730807 ] ], [ 5.33867200533867, [ 479.27978715025, 261, -925.801680511557 ] ], [ 5.37203870537204, [ 479.277982150741, 261, -928.121927338106 ] ], [ 5.40540540540541, [ 479.276415803394, 261, -930.135397393292 ] ], [ 5.43877210543877, [ 479.27514809707, 261, -931.764977656458 ] ], [ 5.47213880547214, [ 479.274265166621, 261, -932.899945595351 ] ], [ 5.50550550550551, [ 479.273928239077, 261, -933.333051011992 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ] }, "cameraOption": { "zoom": [ [ 0, 933.33333343 ] ], "depthOfField": [ [ 0, 0 ] ], "focusDistance": [ [ 0, 933.33333343 ] ], "aperture": [ [ 0, 17.7165354330709 ] ], "blurLevel": [ [ 0, 100 ] ], "irisShape": [ [ 0, 1 ] ], "irisRotation": [ [ 0, 0 ] ], "irisRoundness": [ [ 0, 0 ] ], "irisAspectRatio": [ [ 0, 1 ] ], "irisDiffractionFringe": [ [ 0, 0 ] ], "highlightGain": [ [ 0, 0 ] ], "highlightThreshold": [ [ 0, 1 ] ] } }, { "layerType": "Solid", "name": "text 2_L4", "index": 4, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 295.938317590157, 400.854977850764, -0.43075949814703 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 100 ] ] } }, { "layerType": "Solid", "name": "text_L5", "index": 5, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 204, 172, 0 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 100 ] ] } }, { "layerType": "Null", "name": "Center_L6", "index": 6, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 480, 270, 0 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 0 ] ] } }, { "layerType": "Light", "lightType": "POINT", "name": "Light 1_L7", "index": 7, "parent": 0, "transform": { "position": [ [ 0, [ 414.999999999, 287.000000001, -51.2967533985407 ] ] ] }, "lightOption": { "intensity": [ [ 0, 258 ] ], "color": [ [ 0, [ 0.73522585630417, 0.83555638790131, 0.96518075466156, 1 ] ] ], "falloff": [ [ 0, 1 ] ], "radius": [ [ 0, 500 ] ], "falloffDistance": [ [ 0, 500 ] ], "castsShadows": [ [ 0, 0 ] ], "shadowDarkness": [ [ 0, 100 ] ] } }, { "layerType": "Null", "name": "Right Null_L8", "index": 8, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 1.06773440106773, [ 678, 118, -273.058910804907 ] ], [ 1.1011011011011, [ 678, 117.972731988201, -271.800741393992 ] ], [ 1.13446780113447, [ 678, 117.607299526763, -268.132635399827 ] ], [ 1.16783450116783, [ 678, 116.289145244222, -262.298267925493 ] ], [ 1.2012012012012, [ 678, 113.497839414726, -254.64561211042 ] ], [ 1.23456790123457, [ 678, 109.002046881024, -245.508381459784 ] ], [ 1.26793460126793, [ 678, 102.800928954511, -235.134751352455 ] ], [ 1.3013013013013, [ 678, 95.005059338136, -223.677370699076 ] ], [ 1.33466800133467, [ 678, 85.7711116484189, -211.22842309781 ] ], [ 1.36803470136803, [ 678, 75.2786771081482, -197.849959119241 ] ], [ 1.4014014014014, [ 678, 63.7041955870003, -183.567655841259 ] ], [ 1.43476810143477, [ 678, 51.2434275625484, -168.41014011528 ] ], [ 1.46813480146813, [ 678, 38.0866670528616, -152.381137291001 ] ], [ 1.5015015015015, [ 678, 24.4420445080153, -135.48743273987 ] ], [ 1.53486820153487, [ 678, 10.5260255363411, -117.724351559694 ] ], [ 1.56823490156823, [ 678, -3.42605669663105, -99.084111173793 ] ], [ 1.6016016016016, [ 678, -17.1502326318284, -79.5634420944154 ] ], [ 1.63496830163497, [ 678, -30.3620942461302, -59.1448114822436 ] ], [ 1.66833500166833, [ 678, -42.7265815935287, -37.8331835761353 ] ], [ 1.7017017017017, [ 678, -53.8640473156341, -15.6464106156168 ] ], [ 1.73506840173507, [ 678, -63.3427693519391, 7.3652668021687 ] ], [ 1.76843510176843, [ 678, -70.6742055883384, 31.0567515386147 ] ], [ 1.8018018018018, [ 678, -75.3694279553351, 55.2049273567636 ] ], [ 1.83516850183517, [ 678, -77, 79.4020363086371 ] ], [ 1.86853520186854, [ 678, -75.9833292521049, 103.668697269727 ] ], [ 1.9019019019019, [ 678, -73.0209890749174, 128.22527800388 ] ], [ 1.93526860193527, [ 678, -68.2882279108266, 152.839783396473 ] ], [ 1.96863530196864, [ 678, -61.9948850600189, 177.32879486221 ] ], [ 2.002002002002, [ 678, -54.3546788184424, 201.575500081775 ] ], [ 2.03536870203537, [ 678, -45.5845251657035, 225.47173697022 ] ], [ 2.06873540206874, [ 678, -35.8944595545901, 248.931043128447 ] ], [ 2.1021021021021, [ 678, -25.4771928882867, 271.897984231176 ] ], [ 2.13546880213547, [ 678, -14.5166304530143, 294.319644814267 ] ], [ 2.16883550216884, [ 678, -3.18959848529779, 316.142865978666 ] ], [ 2.2022022022022, [ 678, 8.34325241854355, 337.331534096936 ] ], [ 2.23556890223557, [ 678, 19.9310645903278, 357.853171238028 ] ], [ 2.26893560226894, [ 678, 31.4239784977428, 377.664934136428 ] ], [ 2.3023023023023, [ 678, 42.6819346554807, 396.730452098921 ] ], [ 2.33566900233567, [ 678, 53.573577767281, 415.017949628828 ] ], [ 2.36903570236904, [ 678, 63.9658769223903, 432.483172003081 ] ], [ 2.4024024024024, [ 678, 73.7371441976821, 449.091064240836 ] ], [ 2.43576910243577, [ 678, 82.7633270476122, 464.791381304024 ] ], [ 2.46913580246914, [ 678, 90.9302405344325, 479.536589032098 ] ], [ 2.5025025025025, [ 678, 98.1286993212622, 493.268106567406 ] ], [ 2.53586920253587, [ 678, 104.257009605122, 505.908816849549 ] ], [ 2.56923590256924, [ 678, 109.235652465294, 517.370418791037 ] ], [ 2.6026026026026, [ 678, 113.01652838769, 527.534700121788 ] ], [ 2.63596930263597, [ 678, 115.611715456133, 536.252073599131 ] ], [ 2.66933600266934, [ 678, 117.128942740018, 543.334533403082 ] ], [ 2.7027027027027, [ 678, 117.806447611495, 548.588713982276 ] ], [ 2.73606940273607, [ 678, 117.986873138005, 551.837446887271 ] ], [ 2.76943610276944, [ 678, 118, 552.941089195093 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 0 ] ] } }, { "layerType": "Null", "name": "Top Null_L9", "index": 9, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 412.580129034865, 4, 141.705882352941 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 0 ] ] } }, { "layerType": "Solid", "name": "AE2JSON_L10", "index": 10, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 0, 0, 0 ] ] ], "position": [ [ 0, [ 434, 333, 0 ] ] ], "scale": [ [ 0, [ 100, 100, 100 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 28 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 100 ] ] } }, { "layerType": "Light", "lightType": "SPOT", "name": "Light 2_L11", "index": 11, "parent": 0, "transform": { "pointOfInterest": [ [ 0, [ 480, 270, 0 ] ] ], "position": [ [ 0, [ 788.999999999, 114.06829983699, -51.2967533985407 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, 0 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ] }, "lightOption": { "intensity": [ [ 0, 258 ] ], "color": [ [ 0, [ 0.73522585630417, 0.83555638790131, 0.96518075466156, 1 ] ] ], "coneAngle": [ [ 0, 90 ] ], "coneFeather": [ [ 0, 50 ] ], "falloff": [ [ 0, 1 ] ], "radius": [ [ 0, 500 ] ], "falloffDistance": [ [ 0, 500 ] ], "castsShadows": [ [ 0, 0 ] ], "shadowDarkness": [ [ 0, 100 ] ] } }, { "layerType": "Solid", "name": "Pale Gray-Blue Solid 1_L12", "index": 12, "parent": 0, "transform": { "anchorPoint": [ [ 0, [ 480, 270, 0 ] ] ], "position": [ [ 0, [ 480, 466, 177 ] ] ], "scale": [ [ 0, [ 160, 160, 160 ] ] ], "orientation": [ [ 0, [ 0, 0, 0 ] ] ], "xRotation": [ [ 0, -90 ] ], "yRotation": [ [ 0, 0 ] ], "zRotation": [ [ 0, 0 ] ], "opacity": [ [ 0, 100 ] ] } } ] } ] } --------------------------------------------------------------------------------