import pymel.core as pm
cube = pm.polyCube()[0]
print(cube.vtx[2].__hash__())
But in Maya2022 it results in:
# Error: 'NoneType' object is not callable
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# TypeError: 'NoneType' object is not callable #
Because:
cube.vtx[2].__hash__ == None
This prevents users from storing for example MeshVertex objects as keys in dictionaries.
Is this change intentional?
This works in Maya 2020:
But in Maya2022 it results in:
Because:
cube.vtx[2].__hash__ == None
This prevents users from storing for example MeshVertex objects as keys in dictionaries. Is this change intentional?