def __iter__(self):
    'Iterate over value as a tuple\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["translate"] = (0, 1, 2)\n            >>> for index, axis in enumerate(node["translate"]):\n            ...   assert axis == float(index)\n            ...   assert isinstance(axis, Plug)\n            ...\n            >>> a = createNode("transform")\n            >>> a["myArray"] = Message(array=True)\n            >>> b = createNode("transform")\n            >>> c = createNode("transform")\n            >>> a["myArray"][0] << b["message"]\n            >>> a["myArray"][1] << c["message"]\n            >>> a["myArray"][0] in list(a["myArray"])\n            True\n            >>> a["myArray"][1] in list(a["myArray"])\n            True\n            >>> for single in node["visibility"]:\n            ...   print(single)\n            ...\n            True\n            >>> node = createNode("wtAddMatrix")\n            >>> node["wtMatrix"][0]["weightIn"] = 1.0\n\n        '
    if self._mplug.isArray:
        for index in self._mplug.getExistingArrayAttributeIndices():
            (yield self[index])
    elif self._mplug.isCompound:
        for index in range(self._mplug.numChildren()):
            (yield self[index])
    else:
        values = self.read()
        values = (values if isinstance(values, (tuple, list)) else [values])
        for value in values:
            (yield value)
Iterate over value as a tuple

Example:
    >>> node = createNode("transform")
    >>> node["translate"] = (0, 1, 2)
    >>> for index, axis in enumerate(node["translate"]):
    ...   assert axis == float(index)
    ...   assert isinstance(axis, Plug)
    ...
    >>> a = createNode("transform")
    >>> a["myArray"] = Message(array=True)
    >>> b = createNode("transform")
    >>> c = createNode("transform")
    >>> a["myArray"][0] << b["message"]
    >>> a["myArray"][1] << c["message"]
    >>> a["myArray"][0] in list(a["myArray"])
    True
    >>> a["myArray"][1] in list(a["myArray"])
    True
    >>> for single in node["visibility"]:
    ...   print(single)
    ...
    True
    >>> node = createNode("wtAddMatrix")
    >>> node["wtMatrix"][0]["weightIn"] = 1.0
def __iter__(self):
    'Iterate over value as a tuple\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["translate"] = (0, 1, 2)\n            >>> for index, axis in enumerate(node["translate"]):\n            ...   assert axis == float(index)\n            ...   assert isinstance(axis, Plug)\n            ...\n            >>> a = createNode("transform")\n            >>> a["myArray"] = Message(array=True)\n            >>> b = createNode("transform")\n            >>> c = createNode("transform")\n            >>> a["myArray"][0] << b["message"]\n            >>> a["myArray"][1] << c["message"]\n            >>> a["myArray"][0] in list(a["myArray"])\n            True\n            >>> a["myArray"][1] in list(a["myArray"])\n            True\n            >>> for single in node["visibility"]:\n            ...   print(single)\n            ...\n            True\n            >>> node = createNode("wtAddMatrix")\n            >>> node["wtMatrix"][0]["weightIn"] = 1.0\n\n        '
    if self._mplug.isArray:
        for index in self._mplug.getExistingArrayAttributeIndices():
            (yield self[index])
    elif self._mplug.isCompound:
        for index in range(self._mplug.numChildren()):
            (yield self[index])
    else:
        values = self.read()
        values = (values if isinstance(values, (tuple, list)) else [values])
        for value in values:
            (yield value)