From 7835a8d90d6f0188a83030a1210886e03cffcdc2 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Sun, 13 May 2018 11:28:23 -0700 Subject: [PATCH] Added get functions for bones --- bindings/py3devil1.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/py3devil1.py b/bindings/py3devil1.py index 9a14667..051df07 100755 --- a/bindings/py3devil1.py +++ b/bindings/py3devil1.py @@ -379,6 +379,14 @@ class MEsh: length = self.cstruct.b.contents.bd.contents.numVertex return self.cstruct.b.contents.vd.u[:length] + def getboneindexes(self): + length = self.cstruct.b.contents.bd.contents.numVertex + return self.cstruct.b.contents.vd.bi[:length] + + def getboneweights(self): + length = self.cstruct.b.contents.bd.contents.numVertex + return self.cstruct.b.contents.vd.bw[:length] + #--------------------------------------+ # Regular Python #--------------------------------------+