def asMatrix(self, time=None):
    'Return plug as MatrixType\n\n        Example:\n            >>> node1 = createNode("transform")\n            >>> node2 = createNode("transform", parent=node1)\n            >>> node1["translate"] = (0, 5, 0)\n            >>> node2["translate"] = (0, 5, 0)\n            >>> plug1 = node1["matrix"]\n            >>> plug2 = node2["worldMatrix"][0]\n            >>> mat1 = plug1.asMatrix()\n            >>> mat2 = plug2.asMatrix()\n            >>> mat = mat1 * mat2\n            >>> tm = TransformationMatrix(mat)\n            >>> list(tm.translation())\n            [0.0, 15.0, 0.0]\n\n        '
    if (time is not None):
        context = DGContext(time=time)
        obj = self._mplug.asMObject(context)
    else:
        obj = self._mplug.asMObject()
    return om.MFnMatrixData(obj).matrix()
Return plug as MatrixType

Example:
    >>> node1 = createNode("transform")
    >>> node2 = createNode("transform", parent=node1)
    >>> node1["translate"] = (0, 5, 0)
    >>> node2["translate"] = (0, 5, 0)
    >>> plug1 = node1["matrix"]
    >>> plug2 = node2["worldMatrix"][0]
    >>> mat1 = plug1.asMatrix()
    >>> mat2 = plug2.asMatrix()
    >>> mat = mat1 * mat2
    >>> tm = TransformationMatrix(mat)
    >>> list(tm.translation())
    [0.0, 15.0, 0.0]
def asMatrix(self, time=None):
    'Return plug as MatrixType\n\n        Example:\n            >>> node1 = createNode("transform")\n            >>> node2 = createNode("transform", parent=node1)\n            >>> node1["translate"] = (0, 5, 0)\n            >>> node2["translate"] = (0, 5, 0)\n            >>> plug1 = node1["matrix"]\n            >>> plug2 = node2["worldMatrix"][0]\n            >>> mat1 = plug1.asMatrix()\n            >>> mat2 = plug2.asMatrix()\n            >>> mat = mat1 * mat2\n            >>> tm = TransformationMatrix(mat)\n            >>> list(tm.translation())\n            [0.0, 15.0, 0.0]\n\n        '
    if (time is not None):
        context = DGContext(time=time)
        obj = self._mplug.asMObject(context)
    else:
        obj = self._mplug.asMObject()
    return om.MFnMatrixData(obj).matrix()