Because Maya is a big dumb dumb and errors out if you dare compare an MTypeId with anything other than another MTypeId:
node = cmdx.createNode("transform")
node.isA((cmdx.tTransform, cmdx.tMesh))
# Error: MTypeId expected
# Traceback (most recent call last):
# File "<maya console>", line 2, in <module>
# File "C:\Users\mitch\code\cmdx\cmdx.py", line 844, in isA
# return self._fn.typeName in type or self._fn.typeId in type
# TypeError: MTypeId expected #
Let me know if there;s a better way to solve this!
Because Maya is a big dumb dumb and errors out if you dare compare an MTypeId with anything other than another MTypeId:
Let me know if there;s a better way to solve this!