You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Cal0n
changed the title
Vertex / Edge / Face components no longer hashable in Maya 2022
Vertex / Edge / Face components no longer hashable in Maya 2022, unusable as dictionary keys
Jun 30, 2021
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?
The text was updated successfully, but these errors were encountered: