Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-littlefield/92858b763be00477c8e618b6921791ef to your computer and use it in GitHub Desktop.
Save david-littlefield/92858b763be00477c8e618b6921791ef to your computer and use it in GitHub Desktop.
[Miscellaneous Code] #after_effects
#include "/Users/david/Desktop/input_composition.jsx";
#include "/Users/david/Desktop/current_workspace.jsx";
function create_json_file(object) {
var text = JSON.stringify(object);
var file = new File("~/Desktop/input_composition_cache.json");
file.encoding = "utf-8";
file.open("w");
file.write(text);
file.close();
}
function load_json_file() {
var file = new File("~/Desktop/input_composition_cache.json");
file.open("r");
var data = file.read();
data = JSON.parse(data);
file.close();
return data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment