OSDN Git Service

fix bone tail.
[meshio/meshio.git] / swig / blender / bl24.py
index 3732a73..f57b1c7 100755 (executable)
@@ -272,6 +272,10 @@ class object:
         g.name=name
         g.color_set=color_set
 
+    @staticmethod
+    def boneGroups(o):
+        return object.getPose(o).bone_groups
+
 
 class modifier:
     @staticmethod
@@ -327,6 +331,12 @@ class texture:
         texture.imageFlags|=Blender.Texture.ImageFlags.USEALPHA
         return texture, image
 
+    @staticmethod
+    def getPath(t):
+        image=t.getImage()
+        if image:
+            return image.getFilename()
+
 
 class material:
     @staticmethod
@@ -445,6 +455,10 @@ class mesh:
     def addMaterial(m, material):
         m.materials+=[material]
 
+    @staticmethod
+    def getMaterial(m, index):
+        return m.materials[index]
+
 
 class vertex:
     @staticmethod