Skip to content
fabiantheblind edited this page Oct 11, 2014 · 1 revision

To get data from the web in After Effects you can make use of the system object. This works only in AE (sad but true).

The Socket object from ExtendScript is complicated. Look at GetURLs.jsx by Rorohiko. You need to allow your script to access the network. See this stackoverflow

    # Mac Osx
    var curlcmd = "curl feeds.nfl.com/feeds-rs/schedules.json > ~/Desktop/test/schedules.json";
    var stdout = system.callSystem(curlcmd);
    $.writeln(stdout);
    var file = File("~/Desktop/test/schedules.json");
    file.open();
    var content = file.read();
    file.close();
    $.writeln(content);
Clone this wiki locally