Open pmolodo opened 8 years ago
From Jesse.Ca...@gmail.com on July 30, 2013 14:02:17
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:
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: http://code.google.com/p/pymel/issues/detail?id=306
From Jesse.Ca...@gmail.com on July 30, 2013 14:02:17
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 "", line 1, in
File "C:\Program Files\Autodesk\Maya2013\Python\lib\site-packages\pymel\core\general.py", line 291, in getAttr
}cmds.getAttr( attr, type=1)
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: http://code.google.com/p/pymel/issues/detail?id=306