except:
pass
-# \e$B%U%!%$%k%7%9%F%`$NJ8;z%3!<%I\e(B
-# \e$B2~B$HG$H$N6&MQ$N$?$a\e(B
FS_ENCODING=sys.getfilesystemencoding()
if os.path.exists(os.path.dirname(sys.argv[0])+"/utf8"):
INTERNAL_ENCODING='utf-8'
@staticmethod
def addShapeKey(o, name):
- return o.add_shape_key(name)
+ try:
+ return o.shape_key_add(name)
+ except:
+ return o.add_shape_key(name)
@staticmethod
def hasShapeKey(o):
@staticmethod
def pinShape(o, enable):
- o.show_shape_key=enable
+ o.show_only_shape_key=enable
@staticmethod
def setActivateShapeKey(o, index):