forked from subtleGradient/node-photoshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-ae.es6.jsx
37 lines (30 loc) · 900 Bytes
/
example-ae.es6.jsx
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
#target "aftereffects"
#include "./lib/ExtendScript/index-ae.jsxinc"
if (typeof STDOUT == 'undefined') {
STDOUT = $;
}
var console = {log: function(){var args=Array.prototype.slice.call(arguments,0);
args.forEach(function(arg, index) {
if (index > 0) STDOUT.write(" ");
if (typeof arg != 'string') {
arg = JSON.stringify(arg, null, 2);
}
STDOUT.write('' + arg);
});
STDOUT.write("\n");
}};
function inspect(thing){
return ''
+ Object.prototype.toString.call(thing)
+ '\n'
+ Object.keys(thing).map(function(key) {return typeof comp[key] + ': ' + key;}).sort().join('\n')
;
}
////////////////////////////////////////////////////////////////////////////////
app.onError = function(message, severity){
//$.writeln(message, severity);
};
////////////////////////////////////////////////////////////////////////////////
console.log(
app.project
)