def init_dde_fbx( dde_path='D:/software/dev/DDE/v3.bin', fbx_path='D:/todo/DeepLearning/projects/End/asset/fbx_anime.fbx', fbx_w=1280, fbx_h=720): global g_inited global g_fbx_w global g_fbx_h if g_inited: return True if os.path.exists(dde_path) and os.path.exists(fbx_path): dde.init(dde_path) dde.set_n_copies(120) fbxanime.init(fbx_w, fbx_h, fbx_path) g_fbx_w = fbx_w g_fbx_h = fbx_h g_inited = True return True else: console.log('error', 'Missing', 'Cannot find dde or fbx init file.\n') return False
def init_dde(dde_path=DDE_PATH): global g_dde_inited if not g_dde_inited: dde.init(dde_path) dde.set_n_copies(120) g_dde_inited = True
def init_dde_fbx(dde_path=DDE_PATH, fbx_path=FBX_PATH, fbx_w=1280, fbx_h=720): if os.path.exists(dde_path) and os.path.exists(fbx_path): dde.init(dde_path) dde.set_n_copies(120) fbxanime.init(fbx_w, fbx_h, fbx_path)