unhashable MObjects
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there, I used to be able to use MObjects in a set in Maya 2020, but in 2022 it doesn't seem to work. Just wondering if this is expected or what caused this changed?
import maya.OpenMaya as om
mobject = om.MObject()
object_set = set([mobject])
# Error: unhashable type: 'MObject'
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# TypeError: unhashable type: 'MObject' #
Thanks!
Link copied