Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +7 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
with open("pose_export.json") as f:
|
| 3 |
+
data = json.load(f)
|
| 4 |
+
for joint in data["joints"]:
|
| 5 |
+
# Create empties or apply to armature
|
| 6 |
+
bpy.ops.object.empty_add(location=joint["position"])
|
| 7 |
+
bpy.context.object.name = joint["name"]
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# No additional dependencies required
|