1
This commit is contained in:
commit
a85391509d
211 files changed
+28903
No files matched your search
@@ -0,0 +1,4 @@
|
||||
import bpy,json
|
||||
r=next(o for o in bpy.context.scene.objects if o.type=='ARMATURE' and o.name.startswith('Armature'))
|
||||
print('MATRIX',list(map(list,r.matrix_world)))
|
||||
print(json.dumps([{'name':p.name,'head':list(r.matrix_world@p.head),'tail':list(r.matrix_world@p.tail),'constraints':[(c.name,c.type,getattr(c,'subtarget','')) for c in p.constraints]} for p in r.pose.bones if any(k in p.name for k in ('hand','lowerarm','upperarm','elbow'))]))
|
||||
Reference in new issue
Block a user