Skip to content

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

TypeScript

automaticaly enable `rigify` and `images as planes` addons in blender

jon matthisfc19711da62e
diff --git a/freemocap/freemocap_blender_megascript.py b/freemocap/freemocap_blender_megascript.py
index 3801afa6..19e18457 100644
--- a/freemocap/freemocap_blender_megascript.py
+++ b/freemocap/freemocap_blender_megascript.py
@@ -1,8 +1,14 @@
import bpy
+import addon_utils
import numpy as np
from pathlib import Path
import sys
+#######################################################################
+##% Activate necessary addons
+addon_utils.enable("io_import_images_as_planes")
+addon_utils.enable("rigify")
+
#######################################################################
##% Session path
# #get session path as command line argument