Heya,
I’ve been banging my head against the desk trying to check the existence of a custom attribute on a transform node, using API python calls.
Heres what i got so far, but it gives me an Unexpected Internal Failure
dagIt = maya.OpenMaya.MItDag(maya.OpenMaya.MItDag.kDepthFirst, maya.OpenMaya.MFn.kTransform)
while not dagIt.isDone():
object = maya.OpenMaya.MObject
object = dagIt.currentItem()
depNode = maya.OpenMaya.MFnDependencyNode(object)
print depNode.attributeCount()
depNode.hasAttribute('myAttributeName')
dagIt.next()