19 lines
378 B
Python
19 lines
378 B
Python
from lib.skn_anm import *
|
|
import os
|
|
|
|
|
|
def read_anm(filepath) -> AnmAnim:
|
|
with open(filepath, "rb") as fp:
|
|
init_filetrack(os.fstat(fp.fileno()).st_size)
|
|
r = AnmFile.parse(fp, AnmAnim)
|
|
return r
|
|
|
|
|
|
def main():
|
|
anm = read_anm("/home/tasty/Projects/gck-map-extract-objects/anm_skn/verm_fly.anm")
|
|
pprint(anm)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|