Free Motion Capture for Everyone πβ¨
TypeScript
Merge branch 'blender_stuff' into develop
aaroncherianf234edd545b7
diff --cc freemocap/fmc_runme.pyindex 6c23cc95,bad1ef78..b856a20a--- a/freemocap/fmc_runme.py+++ b/freemocap/fmc_runme.py@@@ -259,33 -178,26 +259,35 @@@ def RunMe(sessionID=Nonenp.save(sesh.dataArrayPath/'deepLabCut_reprojErr.npy', sesh.dlc_reprojErr) #save data to npysesh.save_session()else:- print('Skipping Run MediaPipe')++ print('Skipping 2d point tracking')- # if useBlender == True:- # #blenderExePath = Path('C:\Program Files\Blender Foundation\Blender 2.93')- # #os.chdir(blenderExePath)- # output = subprocess.run([blenderEXEpath, "--background", "--python", str(subprocessPath), "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d.npy')], capture_output=True, text=True, check=True)- # print(output)-- # %% Stage Five - Make Skreleton Animation- if stage <= 5:+ 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)+ thisStage=5+ console.rule(style="color({})".format(thisStage))+ console.rule('Exporting Files...'.upper(), style="color({})".format(thisStage))+ console.rule('Hijacking Blender\'s file format converters to export FreeMoCap data as various file format (.blend, .usd, .gltf, .fbx)', style="color({})".format(thisStage))+ console.rule(style="color({})".format(thisStage))+ time.sleep(pauseBetweenStages)++ #blenderExePath = Path('C:\Program Files\Blender Foundation\Blender 2.93')+ #os.chdir(blenderExePath)+ output = subprocess.run([blenderEXEpath, "--background", "--python", str(subprocessPath), "--", str(sesh.dataArrayPath/'mediaPipeSkel_3d.npy')], capture_output=True, text=True, check=True)+ print(output)++ # %% Stage Five - Make Animation+ if stage <= 6:+ thisStage=6+ console.rule(style="color({})".format(thisStage))+ console.rule('Creating the Skreleton animation!'.upper(),style="color({})".format(thisStage))+ console.print('The video creation is very slow. This whole animation maker is crazy slow, tbh. Sorry about that, future iterations will be better lol :sweat_smile:',overflow="fold", justify='center',style="color({})".format(thisStage))+ console.rule(style="color({})".format(thisStage))+ time.sleep(pauseBetweenStages)++- print('Starting Skeleton Plotting')play_skeleton_animation.PlaySkeletonAnimation(sesh,startFrame=sesh.startFrame,