Free Motion Capture for Everyone πβ¨
TypeScript
look for annotated videos when making blender scene
Jon9da29d486964
diff --git a/.gitignore b/.gitignoreindex 122a22d4..ad21bb81 100644--- a/.gitignore+++ b/.gitignore@@ -147,4 +147,5 @@ data/*.mp4*.divxfreemocap_runme_script_jsm.py-freemocap-ui/threejs_stuff/\ No newline at end of file+freemocap-ui/threejs_stuff/+fmc_calibration/\ No newline at end of filediff --git a/freemocap/freemocap_blender_megascript.py b/freemocap/freemocap_blender_megascript.pyindex dd0236d5..601e25f6 100644--- a/freemocap/freemocap_blender_megascript.py+++ b/freemocap/freemocap_blender_megascript.py@@ -1,3 +1,4 @@+from typing import Annotatedimport bpyimport addon_utilsimport numpy as np@@ -1385,7 +1386,12 @@ try:## Load nSynched Videostry:print('loading videos as planes...')- vidFolderPath = session_path / 'SyncedVideos'+ annotated_videos_path = session_path / 'annotated_videos'++ if annotated_videos_path.is_dir():+ vidFolderPath = annotated_videos_path+ else:+ vidFolderPath = session_path / 'SyncedVideos'world_origin = bpy.data.objects['world_origin']