LumaPictures / pymel

Python in Maya Done Right
Other
490 stars 131 forks source link

global name 'util' is not defined in arrays.py error message #369

Closed bensledge closed 8 years ago

bensledge commented 8 years ago

When you attempt to append an Array with an axis that doesn't exist you get the following error:

a = Array()
a.append(1, axis=1)

# Error: global name 'util' is not defined
# Traceback (most recent call last):
#   File "<maya console>", line 2, in <module>
#   File "pymel/util/arrays.py", line 2053, in append
#     raise ValueError, "cannot append on axis %s, axis does not exist for %s of shape %s" % (axis, util.clsname(self), shape)
# NameError: global name 'util' is not defined # 
pmolodo commented 8 years ago

Thanks for the report - should be fixed now!