When calling getAttr with a targetWeights attribute
(blendShape.inputTarget.inputTargetGroup.targetWeights) and a slice of vertices
I get a TypeError.
Maya 2013 SP2. Windows 7 Enterprise SP1 64bit. PyMEL version is whatever ships
with 2013 SP2 (1.0.4?)
Results:
Expecting:
[1.0, 1.0]
What I get:
# Error: unhashable type: 'list'
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:\Program
Files\Autodesk\Maya2013\Python\lib\site-packages\pymel\core\general.py", line
291, in getAttr
# }[cmds.getAttr( attr, type=1)](res)
# TypeError: unhashable type: 'list' #
Code to reproduce:
import pymel.core as pm
pm.newFile(force=True)
base = pm.polyCube(ch=False)
tgt = pm.polyCube(ch=False)
blendShape = pm.blendShape(tgt, base)[0]
print pm.getAttr('%s.it[0].itg[0].tw[0:1]' % blendShape)
maya.cmds does not error when running the same command.
Original issue reported on code.google.com by Jesse.Ca...@gmail.com on 30 Jul 2013 at 9:02
Original issue reported on code.google.com by
Jesse.Ca...@gmail.com
on 30 Jul 2013 at 9:02