When using the core.deformer in edit mode (in order to prune for example),
pymel returns an error:
# Error: argument 2 to map() must support iteration
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File
"/software/apps/Linux/Autodesk/Maya/2015SP5/maya2015-x64/lib/python2.7/site-pack
ages/pymel/core/animation.py", line 50, in deformer
# return map( _general.PyNode, cmds.deformer(*args, **kwargs) )
# TypeError: argument 2 to map() must support iteration #
I'm using Maya 2015 Extension 1 + SP5 for Linux
I'm on CentOS6.5 64bit
Using Pymel 1.0.6
What is the expected output? What do you see instead?
I guess the expected output would be the deformer node. Instead I have an error
message.
Here's a code that reproduces the problem:
from pymel import core
sphere1 = core.polySphere(r=1)[0]
(clusterDeformer, clusterHandle) = core.cluster(sphere1.getShape())
core.deformer(clusterDeformer, e=1, pr=1)
Does maya.cmds exhibit the same problem?
maya.cmds works, but returns None, creating the error when mapping.
Please provide any additional information below.
I quickly looked into animation.py and found out that cmds.deformer() always
return None on edit, and the map() method in core.deformer() doesn't like this.
Other methods use _util.listForNone() in order to avoid this problem, and it's
not the case here.
Original issue reported on code.google.com by gaspou...@gmail.com on 3 Mar 2015 at 7:47
Original issue reported on code.google.com by
gaspou...@gmail.com
on 3 Mar 2015 at 7:47