Free Motion Capture for Everyone πβ¨
TypeScript
fix blender script path
Jon PC Win Hallway633a3bcfaed4
diff --git a/freemocap/fmc_runme.py b/freemocap/fmc_runme.pyindex b25e0ea9..8e30012f 100644--- a/freemocap/fmc_runme.py+++ b/freemocap/fmc_runme.py@@ -302,8 +302,11 @@ def RunMe(sessionID=None,#blenderPath = Path('C:\Program Files\Blender Foundation\Blender 2.93')#os.chdir(blenderExePath)- output = subprocess.run([str(blenderPath), "--background", "--python", "freemocap/fmc_blender.py", "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d_smoothed.npy'), str(sesh.dataArrayPath), sesh.sessionID], capture_output=True, text=True, check=True)- print(output)+ path_to_this_py_file = Path(__file__).parent.resolve()+ fmc_blender_script_path = path_to_this_py_file /'fmc_blender.py'+ with console.status('Stuffing data into a Blender scene...'):+ output = subprocess.run([str(blenderPath), "--background", "--python", str(fmc_blender_script_path), "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d_smoothed.npy'), str(sesh.dataArrayPath), sesh.sessionID], capture_output=True, text=True, check=True)+ print(output)except:console.print_exception()