def list_env_exr_paths(self, recording_id): assets_path = join(Config.recordings_dir(), recording_id, u'assets') if not os.path.exists(assets_path): return [] paths = [ join(assets_path, p) for p in os.listdir(assets_path) if p.endswith(u".exr") ] return paths
def is_extracted(self, recording_id): path = join(self.full_path(recording_id), u".extracted") exists = os.path.exists(path) logging.info(u"rec: {} / {}".format(path, exists)) return exists
def full_path(self, recording_id): return join(Config.recordings_dir(), recording_id)
def read_manifest(self, recording_id): with open( join(self.full_path(recording_id), u"recording_manifest.json")) as f: return json.load(f)
def first_frame_path(self, recording_id): return join(self.full_path(recording_id), u"frames/ar_00001.png")
def thumbnail_path(self, recording_id): return join(self.full_path(recording_id), u"thumbnail.jpg")
def c4d_fbpx_path(self, recording_id): return join(self.full_path(recording_id), u"c4d_scene_ar_v1.fbx")