Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

look for annotated videos when making blender scene

Jon9da29d486964
diff --git a/.gitignore b/.gitignore
index 122a22d4..ad21bb81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -147,4 +147,5 @@ data/
*.mp4
*.divx
freemocap_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 file
diff --git a/freemocap/freemocap_blender_megascript.py b/freemocap/freemocap_blender_megascript.py
index dd0236d5..601e25f6 100644
--- a/freemocap/freemocap_blender_megascript.py
+++ b/freemocap/freemocap_blender_megascript.py
@@ -1,3 +1,4 @@
+from typing import Annotated
import bpy
import addon_utils
import numpy as np
@@ -1385,7 +1386,12 @@ try:
## Load nSynched Videos
try:
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']