public static Kn5 FromDirectory(string dir, bool jsonMode) {
if (!Directory.Exists(dir)) {
throw new DirectoryNotFoundException(dir);
}
var kn5 = new Kn5(dir);
kn5.FromDirectory_Header(dir);
kn5.FromDirectory_Textures(dir);
kn5.FromDirectory_Materials(dir);
kn5.FromDirectory_Nodes(dir, jsonMode);
return kn5;
}