Created
May 23, 2022 06:13
-
-
Save david-littlefield/92858b763be00477c8e618b6921791ef to your computer and use it in GitHub Desktop.
[Miscellaneous Code] #after_effects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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