[READ-ONLY] Mirror of https://github.com/probablykasper/2dcam. After Effects 2d camera
after-effects camera extendscript script
0

Configure Feed

Select the types of activity you want to include in your feed.

Added script for getting image binaries

Kasper (Mar 8, 2020, 5:49 PM +0100) 05c0e11f 6f707856

+21
+21
get_image_binary.jsx
··· 1 + var win = new Window("palette", "Binary Image Encoder", undefined, { resizeable: true }); 2 + 3 + res = 'group{orientation:"column", alignChildren:"center",\ 4 + filePath: EditText{text:"File path", characters:75},\ 5 + button: Button{text:"Get binary"},\ 6 + output: EditText{text:"Output", multiline:true, characters:75},\ 7 + }'; 8 + win.grp = win.add(res); 9 + 10 + win.grp.button.onClick = function() { 11 + 12 + var f = File(win.grp.filePath.text); 13 + f.encoding = 'BINARY'; 14 + f.open('e'); 15 + var binary = f.read().toSource().replace('(new String("', '').replace(/\")\)$/, ""); 16 + win.grp.output.text = binary; 17 + } 18 + 19 + win.layout.layout(true); 20 + win.center(); 21 + win.show();