Beispiel #1
0
 def bonerot(bindentry):
     args = bindentry["bonerot"].split(":")
     scale = 1
     if ("scale" in bindentry):
         scale = bindentry["scale"]
     return lambda: BlenderUtils.get_bones_rotation_rad(*args) * scale
Beispiel #2
0
 def bonerot(bindentry):
   args = bindentry["bonerot"].split(":")
   scale = 1
   if ("scale" in bindentry):
       scale = bindentry["scale"]
   return lambda: BlenderUtils.get_bones_rotation_rad(*args)*scale
Beispiel #3
0
 def childbones_rot(bindentry):
     armature, axis = bindentry["childbones_rot"].split(":")
     return lambda: [
         BlenderUtils.get_bones_rotation_rad(armature, bone, axis)
         for bone in bpy.data.objects[armature].pose.bones.keys()
     ]
Beispiel #4
0
 def childbones_rot(bindentry):
   armature, axis = bindentry["childbones_rot"].split(":")
   return lambda: [
     BlenderUtils.get_bones_rotation_rad(armature, bone, axis)
     for bone in bpy.data.objects[armature].pose.bones.keys()
   ]