예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def full_path(self, recording_id):
     return join(Config.recordings_dir(), recording_id)
예제 #4
0
 def read_manifest(self, recording_id):
     with open(
             join(self.full_path(recording_id),
                  u"recording_manifest.json")) as f:
         return json.load(f)
예제 #5
0
 def first_frame_path(self, recording_id):
     return join(self.full_path(recording_id), u"frames/ar_00001.png")
예제 #6
0
 def thumbnail_path(self, recording_id):
     return join(self.full_path(recording_id), u"thumbnail.jpg")
예제 #7
0
 def c4d_fbpx_path(self, recording_id):
     return join(self.full_path(recording_id), u"c4d_scene_ar_v1.fbx")