Skip to content

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

TypeScript

jon tweaks

Jon Matthis215c0d263062
diff --git a/freemocap/fmc_runme.py b/freemocap/fmc_runme.py
index d7e7d805..85b06c7f 100644
--- a/freemocap/fmc_runme.py
+++ b/freemocap/fmc_runme.py
@@ -92,8 +92,7 @@ def RunMe(sessionID=None,
print('Running ' + str(sesh.sessionID) + ' from ' + str(sesh.dataFolderPath))
- if useBlender == True:
- blenderPath = startupGUI.RunChooseBlenderPathGUI(session)
+
board = CharucoBoard(7, 5,
#square_length=1, # here, in mm but any unit works (JSM NOTE - just using '1' so resulting units will be in 'charuco squarelenghts`)
#marker_length=.8,
@@ -177,6 +176,12 @@ def RunMe(sessionID=None,
# %% Stage Five - Make Skreleton Animation
if stage <= 5:
+ if useBlender == True:
+ blenderPath = startupGUI.RunChooseBlenderPathGUI(session)
+ print("Saving out FreeMoCap Data as, like, a bunch of different formats I hope?")
+ output = subprocess.run([str(blenderPath), "--background", "--python", "fmc_blender.py", "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d.npy')], capture_output=True, text=True, check=True)
+ print(output)
+
print('Starting Skeleton Plotting')
play_skeleton_animation.PlaySkeletonAnimation(
sesh,
@@ -199,9 +204,6 @@ def RunMe(sessionID=None,
else:
print('Skipping Skeleton Plotting')
- if useBlender == True:
- output = subprocess.run([str(blenderPath), "--background", "--python", "fmc_blender.py", "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d.npy')], capture_output=True, text=True, check=True)
- print(output)
diff --git a/freemocap/fmc_startup/startupGUI.py b/freemocap/fmc_startup/startupGUI.py
index 9395244a..81c22161 100644
--- a/freemocap/fmc_startup/startupGUI.py
+++ b/freemocap/fmc_startup/startupGUI.py
@@ -13,7 +13,7 @@ class setDataPathGUI:
chooseLabel = Label(master, text=chooseText)
chooseLabel.pack(side="top")
- self.currentPath = Path.cwd()
+ self.currentPath = Path.cwd() #JSM NOTE - Why is this referencing `current working directory?` shouldn't it show what the current data path is set to?
text = 'Current file path: ' + str(self.currentPath)
self.currentPathText = tk.StringVar()
self.currentPathText.set(text)