def _encode1(path):
    'Convert `path` to Maya API 1.0 MObject\n\n    Arguments:\n        path (str): Absolute or relative path to DAG or DG node\n\n    Raises:\n        ExistError on `path` not existing\n\n    '
    selectionList = om1.MSelectionList()
    try:
        selectionList.add(path)
    except RuntimeError:
        raise ExistError(("'%s' does not exist" % path))
    mobject = om1.MObject()
    selectionList.getDependNode(0, mobject)
    return mobject
Convert `path` to Maya API 1.0 MObject

Arguments:
    path (str): Absolute or relative path to DAG or DG node

Raises:
    ExistError on `path` not existing
def _encode1(path):
    'Convert `path` to Maya API 1.0 MObject\n\n    Arguments:\n        path (str): Absolute or relative path to DAG or DG node\n\n    Raises:\n        ExistError on `path` not existing\n\n    '
    selectionList = om1.MSelectionList()
    try:
        selectionList.add(path)
    except RuntimeError:
        raise ExistError(("'%s' does not exist" % path))
    mobject = om1.MObject()
    selectionList.getDependNode(0, mobject)
    return mobject